Fix website npm security alerts (115 of 118 Dependabot alerts) - #345
Merged
Conversation
Resolves 115 of the 118 open Dependabot alerts on website/yarn.lock: - Re-resolved stale transitive dependencies where the patched version already satisfied the requested semver range (axios, babel, postcss, minimatch, brace-expansion, immutable, tar-fs, svgo, multer, and more). - Added yarn resolutions where parents pin vulnerable versions: body-parser, cookie, immutable, lodash, on-headers, path-to-regexp, qs, resolve-url-loader, serialize-javascript, tmp, uuid, webpack, ws. - Also refreshed msgpackr (1.12.1) and ordered-binary (1.6.1), fixing a pre-existing gatsby build crash (ERR_BUFFER_OUT_OF_BOUNDS) on Node >= 22.7. Not fixable without upstream Gatsby changes (documented in PR): sharp (patch removes sharp.simd() which Gatsby still calls), file-type (patch is ESM-only), @parcel/reporter-dev-server (patch requires the parcel 2.16 toolchain while Gatsby pins 2.8.3). Co-Authored-By: Claude Fable 5 <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 115 of the 118 open Dependabot alerts, all of which are npm transitive dependencies of the Gatsby website (
website/yarn.lock). There are no open NuGet alerts.Two mechanisms, no direct dependency changes:
resolutions— for packages pinned to vulnerable versions by parents (mostly express 4 exact-pins and Gatsby tilde-pins):body-parser1.20.6,cookie0.7.2,immutable5.1.9,lodash4.18.1,on-headers1.1.0,path-to-regexp0.1.13,qs6.15.3,resolve-url-loader5.0.0 (drops vulnerable postcss 7),serialize-javascript7.1.0,tmp0.2.6,uuid11.1.1,webpack5.109.2,ws8.21.0.Additionally,
msgpackr(1.12.1) andordered-binary(1.6.1) were refreshed: the previous versions crashgatsby buildwithERR_BUFFER_OUT_OF_BOUNDSon Node >= 22.7 (stricterutf8Writebounds checks). This failure exists onmaintoday and blocked verification of this PR.Remaining 3 alerts (not fixable without upstream Gatsby changes)
sharp.simd(), removed in sharp 0.33 — forcing it crashes the build. Exposure is build-time processing of repo-committed images only.require()it (CJS).Suggest dismissing those three on the Dependabot page with the reasoning above.
Verification
yarn build(full Gatsby production build) passes locally on Node 24 — exercises webpack 5.109, postcss 8.5, sass + immutable 5, express-based serve config, terser/serialize-javascript 7, sharp icon generation.yarn typecheckfails onmainand on this branch identically (missing module declaration forlogo.svg); CI's website workflow only runs on pushes tomain.🤖 Generated with Claude Code