Skip to content

fix(deps): resolve npm audit vulnerabilities - #23

Merged
paustint merged 1 commit into
mainfrom
fix/npm-audit-vulnerabilities-2
Nov 1, 2026
Merged

paustint merged 1 commit into
mainfrom
fix/npm-audit-vulnerabilities-2

Conversation

@paustint

@paustint paustint commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves all 8 npm audit advisories (2 high, 6 moderate) and the 9 open Dependabot alerts. Every affected package is a dev dependency.

Package Before After Advisories
vite 8.3.2 8.3.5 6, including launch-editor
vitest / @vitest/mocker 5.0.2 5.0.5 GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp
undici (via release-it 21.1.2) 7.30.0 7.30.1 8
ip-address ≤10.7.3 10.7.5 GHSA-rxp7-6hxx-x8q5
minimatch (via npm-run-all) 3.1.5 removed GHSA-g3hv-75wg-m249

All but minimatch came from npm audit fix.

npm-run-all → npm-run-all2

minimatch@3 came in through npm-run-all@4.1.5, which hasn't been released since 2018. npm's only offered fix was downgrading it to 1.1.3. This PR swaps it for npm-run-all2, the maintained fork. It ships the same npm-run-all binary, so the build script is unchanged. It requires Node ^22.22.2 || ^24.15.0 || >=26; CI uses Node 24.

Changelog

No entry. Nothing under src/ changed and the published package has zero runtime dependencies, so consumers install exactly what they did before. An entry would also turn the next release into a version bump with no change for users. This matches #21.

Testing

  • npm audit: 0 vulnerabilities
  • npm run build succeeds
  • npm test: 127/127 pass
  • npm run format:check and npm run lint are clean

npm audit reported 8 advisories (2 high, 6 moderate), all in dev
dependencies:

- vite 8.3.2 -> 8.3.5 (six advisories, including launch-editor)
- vitest / @vitest/mocker -> 5.0.5 (GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp)
- undici -> 7.30.1 via release-it 21.1.2 (eight advisories)
- ip-address -> 10.7.5 (GHSA-rxp7-6hxx-x8q5)
- minimatch (GHSA-g3hv-75wg-m249), via npm-run-all

All but minimatch came from `npm audit fix`. minimatch@3 was pulled in by
npm-run-all@4.1.5, which has not been released since 2018, and npm's only
fix was downgrading it to 1.1.3. It is replaced with npm-run-all2, the
maintained fork, which ships the same `npm-run-all` binary so the build
script is unchanged. It requires Node ^22.22.2 || ^24.15.0; CI uses 24.

The published package has zero runtime dependencies, so nothing consumers
install changes.
Copilot AI balanced review requested due to automatic review settings November 1, 2026 15:32
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvitest@​5.0.2 ⏵ 5.0.59810079 +198100
Addednpm-run-all2@​9.0.49910010084100
Updatedrelease-it@​21.1.1 ⏵ 21.1.299 +110010094100

View full report

Copilot AI 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.

🟢 Approval recommended

There are no active review issues for the development-dependency security updates.

No open issues 🎉

What changed in this PR

This PR addresses security advisories in development dependencies without changing the XML library’s source or runtime dependencies.

Changes:

  • Replaces npm-run-all with the maintained npm-run-all2 fork, preserving the existing build command and removing the vulnerable minimatch dependency.
  • Updates locked tooling dependencies, including Vite, Vitest, release-it/undici, and ip-address, and removes obsolete transitive packages.
File Description
package.json Switches the development task runner to npm-run-all2.
package-lock.json Records patched dependency versions and removes the legacy task runner’s dependency tree.

Review effort: Balanced

@paustint
paustint merged commit e9781f2 into main Nov 1, 2026
9 checks passed
@paustint
paustint deleted the fix/npm-audit-vulnerabilities-2 branch November 1, 2026 15:41
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