chore(deps): fix pnpm audit DoS advisories (js-yaml, @babel/core)#173
Merged
Conversation
Resolves the two advisories reported by `pnpm audit`. Both are dev-tree transitives (jest / semantic-release tooling); the published package's runtime deps (got, jsonwebtoken) are unaffected. - @babel/core (LOW, GHSA arbitrary file read via sourceMappingURL, <=7.29.0): refreshed the transitive within its existing ^7 range from the jest tree to 7.29.7 — no override needed (parent-update first). This also let the now-stale `@babel/helpers: 7.29.2` override be removed, since @babel/core@7.29.7 pulls a patched @babel/helpers (^7.29.7) natively. - js-yaml (MODERATE, GHSA-h67p-54hq-rp68 quadratic-complexity DoS, <=4.1.1): the only consumers are unmaintained / version-pinned parents (@istanbuljs/load-nyc-config ^3.13.1, cosmiconfig@9 ^4.1.0), so the existing override is required — bumped 4.1.1 -> 4.2.0 (the fixed release; no 4.1.2 was ever published). Also removed the expired `brace-expansion` minimumReleaseAgeExclude (window closed 2026-05-22) so it stops permanently bypassing the 14-day maturity gate. pnpm audit: clean. Signatures: 688 verified. Tests: 54/54. Co-Authored-By: Claude Opus 4.8 (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.
What
Clears the two advisories currently reported by
pnpm audit. Both are dev-tree transitives (jest / semantic-release tooling); the published package's runtime deps (got,jsonwebtoken) are untouched, so this has zero impact on consumers.sourceMappingURL@babel/core<=7.29.07.29.7js-yaml<=4.1.14.2.0Approach — parent update first, override only where forced
Per the policy in
pnpm-workspace.yaml(prefer upgrading the parent over an override):@babel/core→ updated in place, no override. Both installed copies (7.25.2,7.29.0) were stale lockfile resolutions; every consumer (istanbul-lib-instrument ^7.23.9,@babel/helper-module-transforms ^7.0.0,babel-jest) accepts^7, sopnpm update @babel/core -rconverged them to a single7.29.7within range.@babel/helpers: 7.29.2override be removed —@babel/core@7.29.7now pulls a patched@babel/helpers ^7.29.7natively, so the override was both stale (older than its parent) and redundant.js-yaml→ override required, bumped4.1.1→4.2.0. The only consumers are an unmaintained parent pinned to a different major (@istanbuljs/load-nyc-config→^3.13.1) andcosmiconfig@9(^4.1.0); neither pulls a fix on its own, so the existing override is the right tool.4.2.0is the actual fixed release — no4.1.2was ever published despite the advisory's normalized>=4.1.2range.Housekeeping
brace-expansionminimumReleaseAgeExclude(itsRemove after 2026-05-22window has closed). Leaving it would permanently bypass the 14-day maturity gate for that package — exactly the anti-pattern the file warns about.brace-expansion@5stays pinned at5.0.6via override and resolves on its own.Verification
pnpm audit→ No known vulnerabilities foundpnpm audit signatures→ 688 packages have verified registry signaturespnpm install --frozen-lockfile→ lockfile passes supply-chain policiespnpm build→ ✅pnpm test→ 54/54 passing🤖 Generated with Claude Code