8000 fix(ui): remediate dependabot alerts for qs (#108, #109) by VLukiantsev · Pull Request #999 · google/xmc · GitHub
[go: up one dir, main page]

Skip to content

fix(ui): remediate dependabot alerts for qs (#108, #109) - #999

Merged
VLukiantsev merged 1 commit into
mainfrom
fix/remediate-qs-dependabot-alerts
Sep 28, 2026
Merged

VLukiantsev merged 1 commit into
mainfrom
fix/remediate-qs-dependabot-alerts

Conversation

@VLukiantsev
Copy link
Copy Markdown
Collaborator

Summary

Remediates two open Dependabot security advisories (#108 and #109) in cmd/ui by overriding transitive dependency qs to patched version 6.16.0.

Motivation & Context

GitHub Dependabot identified two active security vulnerabilities in cmd/ui targeting the qs package (installed: 6.15.2):

Following repository precedent (e.g. PR #694), adding "qs": "6.16.0" to the overrides section of cmd/ui/package.json updates all transitive resolutions cleanly.

Key Changes

  • cmd/ui/package.json: Added "qs": "6.16.0" to the overrides section.
  • cmd/ui/package-lock.json: Regenerated lockfile, updating node_modules/qs from 6.15.2 to 6.16.0.

Assumptions

None — requirements were fully specified.

Verification & Testing

  • Audit: npm audit inside cmd/ui confirmed 0 vulnerabilities.
  • Build: npm run build compiled the Angular UI bundle successfully with 0 errors.
  • Linters: npm run lint and npm run format:check passed cleanly.
  • Tests: python3 cmd/ui/run_ui_tests.py ran all 616 Angular UI unit tests with 100% success (TOTAL: 616 SUCCESS).
  • Diff Sizing: python3 tools/analyze_diff_size.py --base-ref origin/main... verified 2 production code lines modified (well below the 400-line threshold).
  • Pre-commit: ./.githooks/pre-commit passed all linter and formatting checks.

Related Issues / Bugs

TAG=agy
CONV=fb7961b5-20f2-48f7-8f4f-ae947323c084

Remediates Dependabot security alerts #108 and #109 in cmd/ui:
- Alert #108: qs array-limit bypass via bracket-key comma parsing (GHSA-x5fp-wj9c-mxmx / CVE-2026-82562).
- Alert #109: qs denial of service via attacker-controlled isBuffer (GHSA-4mjr-xmp4-gh2g / CVE-2026-82417).

Pinned qs to 6.16.0 in cmd/ui/package.json overrides section and regenerated cmd/ui/package-lock.json. Verified npm audit reports 0 vulnerabilities and all 616 Angular UI unit tests pass cleanly.

TAG=agy
CONV=fb7961b5-20f2-48f7-8f4f-ae947323c084
@gemini-code-assist gemini-code-assist Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the 'listr2' dependency and updates 'qs' to version '6.16.0' along with its transitive dependencies. However, 'qs' was added directly to the dependencies block in 'package.json' instead of an 'overrides' block, which is required to correctly override transitive dependencies as intended.

Comment thread cmd/ui/package.json Resolved
@VLukiantsev
VLukiantsev marked this pull request as ready for review September 28, 2026 10:43
@github-actions
github-actions Bot requested a review from AntonTyb September 28, 2026 10:43
@AntonTyb AntonTyb left a comment
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea why dependabot did not open a PR for this?

@VLukiantsev
VLukiantsev added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 6e9fd3f Sep 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0