fix(deps): resolve critical and high Dependabot alerts - #125
Merged
Conversation
Bumps js-yaml to the patched 4.3.1 floor in cli/actions (runtime dep, so consumers get the fix too) and adds pnpm overrides for the transitive dependencies whose parents pin vulnerable versions, following the existing micromatch override pattern. Overrides are capped to the parent's expected major except serialize-javascript, where 6.x has no patched release and its webpack-plugin consumers only call serialize(). Not addressed: image-size (GHSA-5p2g-fcmc-qvqq) has no patched release.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Problem
24 open critical/high Dependabot alerts, all in
pnpm-lock.yaml: 2 criticals (shell-quote, websocket-driver) and highs across brace-expansion, fast-uri, js-yaml, linkify-it, nanoid, postcss, serialize-javascript, svgo, and ws. Nearly all are transitive deps of the docusaurus/jest toolchains, sopnpm updatecan't reach them — their parents pin vulnerable versions.Solution
cliandactions, so the floor is bumped to^4.3.1in their package.json — consumers get the patched version regardless of our lockfile.pnpm.overrides(the existingmicromatchpattern). Overrides are range-capped to stay within the major each parent expects (e.g.ws@>=7 <7.5.11 → >=7.5.11 <8), so nothing jumps a major except serialize-javascript (6.0.2 → 7.x): 6.x has no patched release, and its only consumers here are webpack plugins in the docs build callingserialize(), whose API is unchanged — verified by the docs build passing.>=8.5.23which also clears its medium alert at no extra cost.Not fixed: image-size (2 high alerts, GHSA-5p2g-fcmc-qvqq / CVE-2025-71329). No patched release exists — latest is 2.0.2 and the advisory has no fix version. DoS-only (infinite loop parsing JXL/HEIF), used only at docs build time. Recommend dismissing those two alerts as 'no patch available' until upstream ships a fix.
Test Plan
Full
pnpm build(including the docusaurus/webpack docs build that exercises serialize-javascript 7, svgo 3.3.4, postcss 8.5.26) and all 302 tests pass locally.🤖 Generated with Claude Code