Skip to content

fix(ui): remediate dependabot alerts for js-yaml and nanoid - #694

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

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

Conversation

@VLukiantsev

Copy link
Copy Markdown
Collaborator

Summary

Remediates high-severity Dependabot security alerts #99 and #102 in cmd/ui by updating js-yaml to 4.3.2 and pinning nanoid to 3.3.18 via npm overrides.

Motivation & Context

GitHub Dependabot flagged two high-severity vulnerabilities affecting transitive frontend dependencies in cmd/ui:

Key Changes

  • Updated js-yaml from 4.3.0 to 4.3.2 in cmd/ui/package.json overrides.
  • Added nanoid: 3.3.18 override in cmd/ui/package.json overrides.
  • Regenerated cmd/ui/package-lock.json with 0 vulnerabilities audited.

Assumptions

None — requirements were fully specified.

Verification & Testing

  • Commands Executed:
    • npm audit in cmd/ui (0 vulnerabilities found).
    • npm run format:check, npm run lint, and npm run build in cmd/ui.
    • bazel test //cmd/ui/... (//cmd/ui:server_test and //cmd/ui:ui_unit_tests passed).
    • ./.githooks/pre-commit (all pre-commit hooks passed).
    • ./tools/analyze_diff_size.py --base-ref origin/main... (within thresholds, no split needed).
  • Coverage & Test Status: All UI unit tests and build targets passed cleanly.

Related Issues / Bugs

N/A (Resolves Dependabot alerts #99 and #102)

TAG=agy
CONV=3541381a-390e-46d6-a976-4ce5bf317f65

Remediates high-severity Dependabot security alerts #99 and #102 in cmd/ui:
- Alert #99: js-yaml (GHSA-5p4m-2wfm-xmqj) updated to 4.3.2 via overrides.
- Alert #102: nanoid (GHSA-2v37-7h3g-55p8 / CVE-2026-67213) pinned to 3.3.18 in overrides.

Regenerated cmd/ui/package-lock.json and verified npm audit and Bazel UI tests pass cleanly with 0 vulnerabilities.

TAG=agy
CONV=3541381a-390e-46d6-a976-4ce5bf317f65

@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 updates dependencies in the cmd/ui package. Specifically, it upgrades js-yaml to version 4.3.2 and nanoid to version 3.3.18, adding nanoid explicitly to package.json. Additionally, it removes the listr2 dependency and its associated sub-dependencies from package-lock.json. There are no review comments, and I have no feedback to provide.

@VLukiantsev
VLukiantsev marked this pull request as ready for review August 31, 2026 16:25
@github-actions
github-actions Bot requested a review from pachopepe August 31, 2026 16:25
@VLukiantsev
VLukiantsev enabled auto-merge August 31, 2026 16:25
@VLukiantsev VLukiantsev added the priority::3-medium needs review. label Aug 31, 2026

@pachopepe pachopepe 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.

There are not usages of the package in this PR, Am I missing something ?

@VLukiantsev

Copy link
Copy Markdown
Collaborator Author

@pachopepe

Both js-yaml and nanoid are transitive (indirect) dependencies pulled in by @angular-devkit/build-angular (the Angular CLI build pipeline):

@angular-devkit/build-angular
├── postcss-loader -> cosmiconfig -> js-yaml (patched to 4.3.2)
└── postcss -> nanoid (patched to 3.3.18)

GitHub Dependabot audits the full transitive dependency graph in package-lock.json and flagged two open high-severity security alerts on the repo:

Because they are not direct top-level dependencies, npm's overrides field in package.json is the standard mechanism to force the build toolchain to resolve to the patched, secure versions and clear the Dependabot alerts.

@VLukiantsev
VLukiantsev requested a review from pachopepe August 31, 2026 16:54
@VLukiantsev
VLukiantsev added this pull request to the merge queue Sep 1, 2026
Merged via the queue into main with commit a394160 Sep 1, 2026
12 checks passed
@VLukiantsev
VLukiantsev deleted the fix/remediate-dependabot-alerts branch September 1, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority::3-medium needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants