fix(deps): bump qs, fast-uri, nanoid and js-yaml to resolve Dependabot alerts - #151
Merged
Merged
Conversation
…t alerts Resolves 5 of the 7 open Dependabot alerts by updating transitive dependencies in package-lock.json: - qs 6.15.2 -> 6.16.0 via a new npm override (express/body-parser pin ~6.15.1, so the fix is outside their range) — GHSA-x5fp-wj9c-mxmx - fast-uri 3.1.5 -> 3.1.7 — GHSA-fph4-wmhf-6fwf, GHSA-5jgf-p345-68v8 (3.1.7 also fixes GHSA-qw65-cvwx-89v3, GHSA-58mr-gqgx-xq4g, GHSA-f65p-4m7j-42xc, GHSA-jqff-g426-hqxp) - nanoid 3.3.16 -> 3.3.18 — GHSA-2v37-7h3g-55p8 - js-yaml 4.3.0 -> 4.3.2 — GHSA-5p4m-2wfm-xmqj The two image-size alerts (GHSA-5p2g-fcmc-qvqq, GHSA-w3rx-r6r6-pgpr) have no patched release; image-size is unmaintained and Docusaurus is tracking a replacement in facebook/docusaurus#12231. Co-Authored-By: Claude Fable 5.1 <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
Resolves 5 of the 7 open Dependabot alerts by updating transitive dependencies in
package-lock.json. Three are lockfile-only bumps within existing semver ranges;qsneeds a newoverridesentry inpackage.jsonbecauseexpress@4.22.2/body-parser@1.20.6pin~6.15.1and no 4.x express release picks up 6.16.0 yet.@docusaurus/core→webpack-dev-server→express/body-parser)webpack-dev-server→schema-utils→ajv)#132 GHSA-5jgf-p345-68v8 (high): host confusion via skipped IDN canonicalization
@docusaurus/bundler→postcss)@docusaurus/utils,plugin-content-docs,cosmiconfig,gray-matter)!!omapresolutionRelease notes review
No breaking changes in any of the upgrades:
stringifydepthoption and several parse/stringify fixes. The relevant fix enforcesarrayLimiton comma groups under[]=whenthrowOnLimitExceededis set. The only behaviour change is stricter limit enforcement on malformed query strings;qsis only reached here through the dev server (webpack-dev-server→express), never in the production static build. 6.15.3 (also included) hardensmerge/assignagainst__proto__and makescompactO(n).!!omapquadratic-complexity fix from 5.x; 4.3.2 (commit) backports the 5.4.1 merge-sequence limits (hard limit of 100, empty mappings counted towardmaxTotalMergeKeys). Only affects pathological YAML; our frontmatter and config are unaffected.Not fixed: image-size (#127, #128)
GHSA-w3rx-r6r6-pgpr and GHSA-5p2g-fcmc-qvqq (ICNS / JXL / HEIF infinite loops) affect
image-size <= 2.0.2and no patched version exists: 2.0.2 (April 2025) is stilllatest, the upstream fix PR has been deleted, and the repo has had no code commits since. It is pulled in by@docusaurus/mdx-loader, which uses it at build time only to read the dimensions of local images referenced from MDX, so the input is repo-controlled rather than attacker-controlled. Docusaurus is tracking a replacement in facebook/docusaurus#12231 (open PR #12388); neitherlatestnorcanaryhas shipped it yet. Recommend dismissing those two alerts as "vulnerable code is not actually used / no fix available" and revisiting when Docusaurus releases the fix.Verification
npm run build(Docusaurus production build) passesnpm run typecheckpassesnpm startdev server boots and serves/docs/with HTTP 200 (exercises theexpress→qspath affected by the override)npm auditno longer reports qs, fast-uri, nanoid or js-yaml; remaining findings are the image-size alerts above plus abrowserslistadvisory that Dependabot has not raised🤖 Generated with Claude Code