Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @dhanji4U! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
…atalog Re-verified every override entry by removing it, re-resolving the lockfile, and running pnpm audit. The entries that no longer do anything useful are removed: stylex, tmp, @babel/core, hono, both scoped js-yaml floors and the picomatch trio carried over from yarn resolutions all resolve identically without the override, and prettier and minimatch were dedup-only forces whose removal lets consumers follow their own declared ranges. brace-expansion ^2.1.2 goes too. It was added in meta#4398 as a security floor, but 2.x sits below the declared range of every consumer in the graph — minimatch@10 (via @eslint/config-array) declares ^5.0.5, minimatch@3 (via @babel/cli) declares ^1.1.7 — so it was a downgrade, not a floor. It stayed invisible only because the equally stale minimatch ^9.0.7 force held minimatch on a line that still used brace-expansion's default CJS export. Dropping minimatch alone lets @eslint/config-array resolve minimatch 10, which calls the named `expand` that 2.x does not have, and ESLint dies with "brace_expansion_1.expand is not a function". Dropping both lets each consumer resolve inside its own range (5.0.7 and 1.1.16) and ESLint runs clean. The entries that guard live advisories stay, documented with the dependent that pins the vulnerable version and the condition for deleting them: postcss ^8.5.18 (next@15 pins 8.4.31), dompurify ^3.4.12 ([email protected] pins 3.2.7, 16 advisories), esbuild >=0.28.1 ([email protected] resolves 0.27.7), fast-uri ^3.1.4 (meta#4398), sharp ^0.35.3 (meta#4449), and the read-yaml-file 2.x lift. Both js-yaml chains move to ^5.2.2, adopting the fix in meta#4402 — the previous '>=4.2.0' floor was unbounded and resolved onto js-yaml 5.2.1, inside the vulnerable >=5.0.0 <=5.2.1 range. Written as a caret rather than '>=' so a future js-yaml 6 cannot repeat that. [email protected] is added to minimumReleaseAgeExclude so the floor can resolve. Workspace-wide version pins that lived in overrides move to the pnpm catalog alongside vite: @stylexjs/stylex, @stylexjs/babel-plugin, prettier, esbuild. Peer ranges stay untouched — they are consumer contracts, not workspace pins. pnpm audit goes from 12 findings to 10; the remaining 10 match main's baseline exactly.
- js-yaml 4.x vulnerable to DoS via !!omap and flow collections - Patched in 5.2.2, requires overriding read-yaml-file>js-yaml and @changesets/parse>js-yaml - Verified with pnpm changeset status - Added [email protected] to minimumReleaseAgeExclude
60cf807 to
2c01be2
Compare
…atalog Re-verified every override entry by removing it, re-resolving the lockfile, and running pnpm audit. The entries that no longer do anything useful are removed: stylex, tmp, @babel/core, hono, both scoped js-yaml floors and the picomatch trio carried over from yarn resolutions all resolve identically without the override, and prettier and minimatch were dedup-only forces whose removal lets consumers follow their own declared ranges. brace-expansion ^2.1.2 goes too. It was added in meta#4398 as a security floor, but 2.x sits below the declared range of every consumer in the graph — minimatch@10 (via @eslint/config-array) declares ^5.0.5, minimatch@3 (via @babel/cli) declares ^1.1.7 — so it was a downgrade, not a floor. It stayed invisible only because the equally stale minimatch ^9.0.7 force held minimatch on a line that still used brace-expansion's default CJS export. Dropping minimatch alone lets @eslint/config-array resolve minimatch 10, which calls the named `expand` that 2.x does not have, and ESLint dies with "brace_expansion_1.expand is not a function". Dropping both lets each consumer resolve inside its own range (5.0.7 and 1.1.16) and ESLint runs clean. The entries that guard live advisories stay, documented with the dependent that pins the vulnerable version and the condition for deleting them: postcss ^8.5.18 (next@15 pins 8.4.31), dompurify ^3.4.12 ([email protected] pins 3.2.7, 16 advisories), esbuild >=0.28.1 ([email protected] resolves 0.27.7), fast-uri ^3.1.4 (meta#4398), sharp ^0.35.3 (meta#4449), and the read-yaml-file 2.x lift. Both js-yaml chains move to ^5.2.2, adopting the fix in meta#4402 — the previous '>=4.2.0' floor was unbounded and resolved onto js-yaml 5.2.1, inside the vulnerable >=5.0.0 <=5.2.1 range. Written as a caret rather than '>=' so a future js-yaml 6 cannot repeat that. [email protected] is added to minimumReleaseAgeExclude so the floor can resolve. Workspace-wide version pins that lived in overrides move to the pnpm catalog alongside vite: @stylexjs/stylex, @stylexjs/babel-plugin, prettier, esbuild. Peer ranges stay untouched — they are consumer contracts, not workspace pins. pnpm audit goes from 12 findings to 10; the remaining 10 match main's baseline exactly.
|
Thanks for taking this on @dhanji4U, and sorry it sat open so long. I'm closing it, but the fault is in the issue, not your patch. Both advisories #4399 cites (GHSA-pm4m-ph32-ghv5, GHSA-724g-mxrg-4qvm) apply only to the js-yaml 5.x line — 4.x was never in range — so moving the override to Main has since gone the other way on purpose: #4653 constrained the override to Your patch does exactly what the issue asked for — the mistake was upstream of you. I'd genuinely like a second contribution out of you; say the word and I'll point you at something well-shaped. |
…atalog Re-verified every override entry by removing it, re-resolving the lockfile, and running pnpm audit. The entries that no longer do anything useful are removed: stylex, tmp, @babel/core, hono, both scoped js-yaml floors and the picomatch trio carried over from yarn resolutions all resolve identically without the override, and prettier and minimatch were dedup-only forces whose removal lets consumers follow their own declared ranges. brace-expansion ^2.1.2 goes too. It was added in meta#4398 as a security floor, but 2.x sits below the declared range of every consumer in the graph — minimatch@10 (via @eslint/config-array) declares ^5.0.5, minimatch@3 (via @babel/cli) declares ^1.1.7 — so it was a downgrade, not a floor. It stayed invisible only because the equally stale minimatch ^9.0.7 force held minimatch on a line that still used brace-expansion's default CJS export. Dropping minimatch alone lets @eslint/config-array resolve minimatch 10, which calls the named `expand` that 2.x does not have, and ESLint dies with "brace_expansion_1.expand is not a function". Dropping both lets each consumer resolve inside its own range (5.0.7 and 1.1.16) and ESLint runs clean. The entries that guard live advisories stay, documented with the dependent that pins the vulnerable version and the condition for deleting them: postcss ^8.5.18 (next@15 pins 8.4.31), dompurify ^3.4.12 ([email protected] pins 3.2.7, 16 advisories), esbuild >=0.28.1 ([email protected] resolves 0.27.7), fast-uri ^3.1.4 (meta#4398), sharp ^0.35.3 (meta#4449), and the read-yaml-file 2.x lift. Both js-yaml chains move to ^5.2.2, adopting the fix in meta#4402 — the previous '>=4.2.0' floor was unbounded and resolved onto js-yaml 5.2.1, inside the vulnerable >=5.0.0 <=5.2.1 range. Written as a caret rather than '>=' so a future js-yaml 6 cannot repeat that. [email protected] is added to minimumReleaseAgeExclude so the floor can resolve. Workspace-wide version pins that lived in overrides move to the pnpm catalog alongside vite: @stylexjs/stylex, @stylexjs/babel-plugin, prettier, esbuild. Peer ranges stay untouched — they are consumer contracts, not workspace pins. pnpm audit goes from 12 findings to 10; the remaining 10 match main's baseline exactly. � Conflicts: � pnpm-workspace.yaml
…atalog (#4101) * chore(deps): prune stale pnpm overrides, move workspace pins to the catalog Re-verified every override entry by removing it, re-resolving the lockfile, and running pnpm audit. The entries that no longer do anything useful are removed: stylex, tmp, @babel/core, hono, both scoped js-yaml floors and the picomatch trio carried over from yarn resolutions all resolve identically without the override, and prettier and minimatch were dedup-only forces whose removal lets consumers follow their own declared ranges. brace-expansion ^2.1.2 goes too. It was added in #4398 as a security floor, but 2.x sits below the declared range of every consumer in the graph — minimatch@10 (via @eslint/config-array) declares ^5.0.5, minimatch@3 (via @babel/cli) declares ^1.1.7 — so it was a downgrade, not a floor. It stayed invisible only because the equally stale minimatch ^9.0.7 force held minimatch on a line that still used brace-expansion's default CJS export. Dropping minimatch alone lets @eslint/config-array resolve minimatch 10, which calls the named `expand` that 2.x does not have, and ESLint dies with "brace_expansion_1.expand is not a function". Dropping both lets each consumer resolve inside its own range (5.0.7 and 1.1.16) and ESLint runs clean. The entries that guard live advisories stay, documented with the dependent that pins the vulnerable version and the condition for deleting them: postcss ^8.5.18 (next@15 pins 8.4.31), dompurify ^3.4.12 ([email protected] pins 3.2.7, 16 advisories), esbuild >=0.28.1 ([email protected] resolves 0.27.7), fast-uri ^3.1.4 (#4398), sharp ^0.35.3 (#4449), and the read-yaml-file 2.x lift. Both js-yaml chains move to ^5.2.2, adopting the fix in #4402 — the previous '>=4.2.0' floor was unbounded and resolved onto js-yaml 5.2.1, inside the vulnerable >=5.0.0 <=5.2.1 range. Written as a caret rather than '>=' so a future js-yaml 6 cannot repeat that. [email protected] is added to minimumReleaseAgeExclude so the floor can resolve. Workspace-wide version pins that lived in overrides move to the pnpm catalog alongside vite: @stylexjs/stylex, @stylexjs/babel-plugin, prettier, esbuild. Peer ranges stay untouched — they are consumer contracts, not workspace pins. pnpm audit goes from 12 findings to 10; the remaining 10 match main's baseline exactly. � Conflicts: � pnpm-workspace.yaml * chore: retrigger CI (known Markdown perf-test flake, fixed by #4099) * chore(deps): address #4101 review, prune 6 more pnpm overrides Per cixzhang's review: floor brace-expansion on the 5.x line (^5.0.9, inside minimatch@10's own ^5.0.5) instead of re-pinning 2.x and forcing minimatch alongside it — minimatch now resolves on its own. Also move @stylexjs/postcss-plugin into the catalog; it was left literal next to the now-catalog stylex/babel-plugin pins and would have silently drifted on the next bump. Re-verified every remaining override against the current lockfile the same way: drop it, re-resolve, check what actually lands. hono, @changesets/parse>js-yaml, fast-uri, ip-address, and nanoid all resolve to safe versions unforced now, so they're pruned (hono also drops out of minimumReleaseAgeExclude). @hono/node-server and read-yaml-file (+ its js-yaml floor) stay — pnpm audit reports clean without them, but the actual resolved versions without the override are vulnerable (@hono/node-server 1.19.17, read-yaml-file 1.x pulling js-yaml 3.x), which audit's advisory feed doesn't catch. pnpm install --frozen-lockfile, pnpm audit (0 findings), and eslint all pass on the result. * chore(deps): bump docsite's MCP SDK to drop the @hono/node-server override @modelcontextprotocol/sdk 1.30.0 widens its @hono/node-server range to '^1.19.9 || ^2.0.5', so the patched 2.x line resolves on its own now — no override needed to hold it there. Verified: @hono/node-server resolves to 2.1.0, hono to 4.13.1, pnpm audit stays clean. pnpm install --frozen-lockfile and eslint pass on the result.
Fixes #4399
js-yaml 4.x vulnerable to DoS via !!omap and flow collections