fix(deps): patch 34 Dependabot vulnerabilities via resolutions#24369
Open
pranav-new-relic wants to merge 1 commit into
Open
fix(deps): patch 34 Dependabot vulnerabilities via resolutions#24369pranav-new-relic wants to merge 1 commit into
pranav-new-relic wants to merge 1 commit into
Conversation
|
Hi @pranav-new-relic 👋 Thanks for your pull request! Your PR is in a queue, and a writer will take a look soon. We generally publish small edits within one business day, and larger edits within three days. Please ensure the propsed changes look good by building it first in your local environment. Refer to this contribution guide to get the site up and running in your local. If you really require a preview url, reach out to one of the writers and they will generate one for you. |
becb07c to
98ee34f
Compare
Adds yarn resolutions to force patched versions of transitive dependencies flagged by Dependabot. Closes ~34 alerts including: - shell-quote (CVE-2026-9277, CRITICAL) - form-data (CVE-2025-7783, CRITICAL) - @babel/plugin-transform-modules-systemjs, basic-ftp, engine.io, fast-uri, fast-xml-parser, follow-redirects, on-headers, semver, svgo, tough-cookie, trim, webpack, xml2js, ws, serialize-javascript, qs (HIGH/MEDIUM) - @tootallnate/once, brace-expansion, cookie, cross-spawn, dottie, lodash, node-forge, tmp (MEDIUM/LOW) Direct dep bumps: - simple-git 3.32.3 -> 3.36.0 (dev) - sequelize 6.21.3 -> 6.37.8 (runtime) Skipped packages requiring major-version bumps (multer 1->2, undici 5->6, file-type 16->21, sanitize-html 1->2, esbuild 0.15->0.25, js-cookie 2->3, ip-address 9->10, gatsby-transformer-remark 5->6, uuid 9->12, sharp 0.30->0.32) and packages with multi-branch trees that yarn 1.x classic cannot selectively resolve (minimatch 3.x/9.x, nth-check 1.x/2.x, postcss 7.x/8.x, katex 0.13/0.16, js-yaml 3.x/4.x, path-to-regexp 0.1/6, yaml 1.x/2.x, ajv 6.x/8.x). Also skipped mdast-util-to-hast: a global ^13.2.1 resolution broke @mdx-js/mdx@2.0.0-next.8 (CJS) which require()s mdast-util-to-hast (ESM-only since v12), causing ERR_REQUIRE_ESM in verify-mdx and test:esm. The CJS/ESM split across versions 9/10 vs 12/13 is unfixable without selective per-version resolution. Verified: yarn install, yarn lint, yarn test:cjs (24/24 suites pass), direct ESM tests (82/82 pass).
98ee34f to
bad0681
Compare
This was referenced Jun 10, 2026
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
Adds yarn
resolutionsto force-patched versions of transitive dependencies flagged by Dependabot, plus two direct dependency bumps. Aims to close as many alerts as possible without major-version breaking changes.Of the 130 open Dependabot alerts at branch time (3 critical, 58 high, 58 medium, 11 low), this PR directly patches 34 alerts and ~30 more will auto-close on the next Dependabot rescan because the new lockfile no longer contains the vulnerable version. The remainder require major-version migrations or are blocked by yarn 1.x classic's inability to selectively resolve multi-branch trees.
All open Dependabot alerts →
✅ Fixed — Critical
shell-quoteform-dataform-data✅ Fixed — High
trimsemverwswscross-spawnserialize-javascriptsvgosequelizefast-xml-parsernode-forgenode-forgenode-forgenode-forgelodashbasic-ftpsimple-gitbasic-ftpfast-urifast-uri@babel/plugin-transform-modules-systemjstmp✅ Fixed — Medium
xml2jstough-cookieengine.ioqslodashdottielodashfast-xml-parserfollow-redirectswsserialize-javascriptqs✅ Fixed — Low
cookieon-headerstmpwebpackwebpackqs@tootallnate/once🔄 Will auto-close on next Dependabot rescan
These alerts were filed against versions no longer present in the lockfile after this PR. Dependabot will close them automatically once it re-scans.
wswsinstances forced to 8.21.0got9.6.0/11.8.6; vulnerable range>=12.0.0webpack-dev-middleware4.3.0; vulnerable range>=7.0.0socket.io4.5.4; vulnerable range<2.5.0axios0.21.4; vulnerable range>=1.0.0@parcel/reporter-dev-serverdiff4.x/5.x; vulnerable range>=6.0.0axios0.21.4; vulnerable range>=1.0.0minimatch>=10.0.0; we have3.x/9.xonlyminimatchminimatchminimatchminimatchminimatchimmutable3.7.6; vulnerable range>=5.0.0fast-xml-parser4.5.6; vulnerable range>=5.0.0socket.io-parser4.2.4; vulnerable range<3.3.5picomatch2.3.1; vulnerable range>=4.0.0picomatchbrace-expansion2.1.1; vulnerable range>=4.0.0brace-expansionaxios0.21.4; vulnerable range>=1.0.0axiosfast-xml-parser>=5.0.0; installed4.5.6axios0.21.4; vulnerable range>=1.0.0axiosaxiosaxiosaxiosaxiosaxiosaxiosaxiosaxiosuuid9.0.1; vulnerable range12.0.0onlyuuidaxios0.21.4; vulnerable range>=1.0.0axiosaxiosaxiosaxiosaxios⏭ Skipped — not safely fixable in this PR
Reasons fall into four buckets:
parent/childscoped syntax was tried and silently fails for transitive parents). A single global resolution would force one consumer to a wrong major.require()consumersmdast-util-to-hast13.2.1is ESM-only, but@mdx-js/mdx@2.0.0-next.8(pinned for Gatsby v4) loads it viarequire(). Forcing 13.x globally breaksverify-mdxandtest:esmwithERR_REQUIRE_ESM. Multi-branch (9.x/10.x/12.x/13.x) can't be selectively resolved in yarn 1.x classicgatsby-transformer-remarksharpgatsby-plugin-sharplodash.pick4.17.19but max publishedlodash.pickis4.4.0. CVE applies tolodash, already fixedsanitize-htmlgatsby-transformer-remarkmultermultermultermultermultermultermulterundiciundiciminimatch3.0.4,3.1.2,9.0.0installed; can't selectively upgrade3.0.4without breakingglob10(uses 9.x)nth-check1.0.2(vuln) and2.1.1(safe) co-installed; nth-check 1.x→2.x changed module shapepath-to-regexp0.1.12(express) and6.3.0(sinon/nise) co-installedjs-cookieaxiossanitize-htmlsanitize-htmlsanitize-htmlsanitize-htmlgatsby-plugin-sharppostcss7.0.39and8.5.5co-installedpostcssvue-template-compilerrequestesbuildkatex0.13.24(vuln) and0.16.25(safe); 0.13→0.16 is breakingkatexkatexkatexjs-yaml3.14.1(used by our scripts viasafeLoad) and4.1.0; forcing 4.x breaks 3.x APIjs-yamlajv6.12.6(used by webpack/gatsby) and8.x; forcing 8.x breaks JSON Schema 6 consumersajvundiciundiciundicifile-typeyaml1.10.2and2.8.0co-installedyamlip-addressaws-sdkTest plan
yarn installsucceeds (only pre-existing peer-dep warnings)yarn lintpasses (1 pre-existing react-hooks warning)yarn test:cjs— 24/24 suites, 162 passed + 12 skippedscripts/actions/__esm-tests__run tests(test:cjs + test:esm)run verify(verify-mdx)