Fix 20 open Dependabot alerts via transitive dependency overrides (angefragt von Florian Galz) - #1853
Open
askmarvin1337 wants to merge 1 commit into
Open
Fix 20 open Dependabot alerts via transitive dependency overrides (angefragt von Florian Galz)#1853askmarvin1337 wants to merge 1 commit into
askmarvin1337 wants to merge 1 commit into
Conversation
Pin nanoid, postcss, dompurify, fast-uri, shell-quote, brace-expansion (both v1 and v2 lines), uuid (sockjs), body-parser (webpack-dev-server's nested express), webpack-dev-server, and js-yaml (5 docusaurus-internal consumers) to their patched versions via npm overrides, scoped to the specific parent chain wherever a package resolves to multiple divergent versions in the tree (e.g. root express@5.x keeps body-parser@2.x, only webpack-dev-server's nested express@4.x gets body-parser@1.20.6; root js-yaml stays @5.x, only the five internal @4.x consumers move to @4.3.1). Closes GHSA-2v37-7h3g-55p8, GHSA-5p4m-2wfm-xmqj, GHSA-fxqj-rqcc-2cmp, GHSA-rgw5-rvv9-x895, GHSA-3jxr-9vmj-r5cp, GHSA-mh99-v99m-4gvg, GHSA-55q2-fjhq-7xh7, GHSA-7p8r-x3mc-p8w7, GHSA-v422-hmwv-36x6, GHSA-52cp-r559-cp3m, GHSA-m28w-2pqf-7qgj, GHSA-f5vj-f2hx-8m93, GHSA-395f-4hp3-45gv, GHSA-v2hh-gcrm-f6hx, GHSA-4c8g-83qw-93j6, GHSA-c2j3-45gr-mqc4, GHSA-w5hq-g745-h8pq. Not fixed: image-size (GHSA-w3rx-r6r6-pgpr, GHSA-5p2g-fcmc-qvqq) has no patched release yet upstream (latest is still 2.0.2).
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
Closes 20 of the 22 currently open Dependabot alerts by pinning vulnerable transitive dependencies to their patched versions via npm
overrides, scoped to the specific parent chain wherever a package resolves to multiple divergent versions in the tree:^5.2.1)filelistonly)^2.3.0)Not fixed:
image-size(#156, #155) has no patched release yet upstream — latest published version is still2.0.2, same as the vulnerable one. A fix PR exists upstream (image-size/image-size#439) but hasn't shipped as an npm release. Flagging for awareness; nothing actionable on our side until upstream releases a patch.Test plan
npm installresolves every targeted package to its patched version at the correct place in the tree (verified vianpm ls <pkg>for all 10 packages)npm auditdrops from 31 to 20 findings, all remaining ones attributable solely toimage-size(no fix available)npm run buildcompletes successfullynpm run startdev server boots and servesHTTP 200(exercises the webpack-dev-server/express/sockjs/body-parser chain directly)git difflimited to the exact changed lockfile entries, no unrelated lockfile churn🤖 Generated with Claude Code