Fix npm audit vulnerabilities#1432
Merged
Merged
Conversation
Bump brace-expansion from ^4.0.1 to ^5.0.6 to address GHSA-f886-m6hf-6m8v (zero-step sequence causes process hang and memory exhaustion). v5 changed from a default export to a named `expand` export, so update the import in src/util/glob.ts accordingly. Remove @types/brace-expansion since v5 ships its own type declarations. Run `npm audit fix` to address 16 additional vulnerabilities in transitive devDependencies: ajv, fast-uri, flatted, lodash, markdown-it, minimatch, picomatch, pnpm, qs, tmp, underscore, undici, uuid, and related packages. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
brace-expansionfrom^4.0.1to^5.0.6to fix GHSA-f886-m6hf-6m8v (zero-step sequence causes process hang and memory exhaustion)src/util/glob.tsfrom default export to namedexpandexport (v5 breaking change)@types/brace-expansion(v5 ships its own type declarations)npm audit fixto resolve 16 additional transitive devDependency vulnerabilities (ajv, fast-uri, flatted, lodash, markdown-it, minimatch, picomatch, pnpm, qs, tmp, underscore, undici, uuid, and related packages)Details
Before: 18 vulnerabilities (8 moderate, 10 high)
After: 2 moderate (both from the published
wireit@0.14.12devDependency, which self-resolves on next publish)No public API changes. Engine requirements unchanged (
node >=18.0.0).Test plan
tsc --noEmitpassesnpm auditshows only the self-referential devDependency vuln