Skip to content

deps: resolve npm audit vulnerabilities and update CI configs#297

Merged
eablack merged 2 commits into
mainfrom
eb/fix-dependency-vulnerabilities
Jun 9, 2026
Merged

deps: resolve npm audit vulnerabilities and update CI configs#297
eablack merged 2 commits into
mainfrom
eb/fix-dependency-vulnerabilities

Conversation

@eablack

@eablack eablack commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves all 8 npm audit vulnerabilities (2 low, 6 moderate) — final state: found 0 vulnerabilities. Also updates dependabot.yml and release-please-config.json to align commit-message prefixes (deps, deps(dev)) with conventional changelog sections.

Source Vulnerability Fix
brace-expansion, fast-xml-parser, @aws-sdk/xml-builder transitive moderate-severity advisories npm audit fix (lockfile only)
mochadiff@7.0.0 jsdiff DoS (GHSA-73rr-hh4g-fpgx) added diff: ^8.0.3 override
@heroku-cli/command@11uuid@8.3.2 uuid buffer bounds-check (GHSA-w5hq-g745-h8pq) added uuid: ^11.1.1 override

The uuid override was chosen over npm audit fix --force, which would have bumped @heroku-cli/command 11→12 and pulled @oclif/core 2→4 — a substantial breaking change touching every command file. Patching uuid directly resolves the CVE without that churn. The major upgrade can be a separate effort if desired.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • perf: Performance improvement
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • docs: Documentation change
  • style: Styling update
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • tests: Add/update/remove tests
  • build: Change to the build system
  • ci: Continuous integration workflow update

Testing

Notes: Local verification confirms 0 vulnerabilities and a passing test suite. Passing CI suffices for further validation.

Steps:

  1. npm install — installs cleanly with overrides applied.
  2. npm audit — reports found 0 vulnerabilities.
  3. npm test — 192 passing.
  4. npm run build — completes successfully.

Screenshots (if applicable)

Related Issues

GitHub issue: #[GitHub issue number]
GUS work item: [WI number](WI link)

Fixes 8 npm audit vulnerabilities (2 low, 6 moderate):
- Apply npm audit fix for transitive deps (brace-expansion, fast-xml-parser, @aws-sdk/xml-builder).
- Override diff to ^8.0.3 to patch mocha's vulnerable transitive jsdiff DoS.
- Override uuid to ^11.1.1 to patch @heroku-cli/command's vulnerable transitive uuid bounds-check, avoiding a disruptive @heroku-cli/command 11→12 (with @oclif/core 2→4) major upgrade.

Also updates dependabot.yml and release-please-config.json to align commit-message prefixes with conventional changelog sections.
@eablack eablack requested a review from a team as a code owner June 9, 2026 18:03

@tlowrimore-heroku tlowrimore-heroku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Apply the same changelog-sections block to release-please-config.beta.json so beta and main releases categorize commits identically.
@eablack eablack merged commit e97ef7c into main Jun 9, 2026
8 checks passed
@eablack eablack deleted the eb/fix-dependency-vulnerabilities branch June 9, 2026 20:30
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