Repository navigation
security(deps): unstick the js-yaml and postcss overrides off vulnerable pins - #444
Conversation
…ble pins Both pins had gone stale the same way fast-uri did in #441: the override version that was patched when it was written now sits inside the advisory's widened range, so the pin was holding the tree ON a known vulnerable version rather than off one. js-yaml pin 4.3.0 GHSA-5p4m-2wfm-xmqj (high) >= 4.0.0, < 4.3.1 postcss pin 8.5.18 GHSA-fxqj-rqcc-2cmp (medium) <= 8.5.22 Bumps js-yaml to 4.3.1 and postcss to 8.5.23, and widens the js-yaml range key from <4.3.0 to <4.3.1 so the override still covers everything the advisory does. Both surfaced on main the moment #437 promoted, because Dependabot only reports against the default branch. They will not close until this reaches main in turn. Verified: lint, format:check, source:build, tsc --noEmit clean, and 381 int tests passing. Co-Authored-By: Claude Opus 5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 56 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe pull request updates two pnpm dependency overrides in ChangesDependency override updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
#443 caught something this branch missed. postcss is declared TWICE — as a direct devDependency and as a pnpm override — and the original commit only moved the override. Dependabot raised GHSA-fxqj-rqcc-2cmp against both manifest paths for exactly that reason: one alert on pnpm-lock.yaml (the resolution) and a second on package.json (the declared devDependency range). The override already forced the tree to 8.5.23, so nothing was actually resolving vulnerable — but the declaration was still an exact pin on 8.5.18, and the package.json alert tracks the declaration. Also merges origin/dev, which has moved to 1.3.0 (#442, #447, #448, #449) since this branch was cut. Verified against current dev: lint, format:check, source:build, tsc --noEmit, test:registry all clean, and 505 int tests passing. pnpm install --frozen-lockfile passes, so the lockfile and manifest agree the way CI checks them. Co-Authored-By: Claude Opus 5 <[email protected]>
Summary
Two
pnpm.overridespins had gone stale in exactly the wayfast-uridid in #441 — the version that was patched when the override was written now sits inside the advisory's widened range, so the pin was holding the tree on a known-vulnerable version rather than off one.js-yaml4.3.0>= 4.0.0, < 4.3.14.3.1postcss8.5.18<= 8.5.228.5.23The
js-yamlrange key moved too —js-yaml@<4.3.0→js-yaml@<4.3.1— so the override still covers everything the advisory does. Bumping only the value would have left4.3.0itself unmatched and resolvable.Why they appeared now
Both were created the moment #437 promoted
devtomain. Dependabot only evaluates the default branch, so an advisory that widens while work sits ondevstays invisible until a promote lands. Same reason these will not close until this PR reachesmainin turn.This is the third instance of the same trap, after the
postcsssplit andfast-uriin #441. The failure mode is that a pinned override looks permanently correct — the pin does not move, so nothing signals that the advisory grew around it.Verification
pnpm lintpnpm format:checkpnpm source:buildpnpm exec tsc --noEmitpnpm test:intLockfile confirms no stale resolutions remain —
grep '[email protected]\|[email protected]' pnpm-lock.yamlreturns nothing, and everypostcsspeer chain (tsup,postcss-load-config) re-resolved to8.5.23.Diff is 2 files, +30/-30 — the override values plus the lockfile, no source changes.
Scope note
I bumped the two overrides Dependabot currently flags rather than prophylactically re-pinning the whole block. The other eight pins report no open advisory right now, but they carry the same latent staleness, so the block is worth re-auditing on each promote rather than trusting that silence means current.
Hosted required checks remain the acceptance gate —
release-gatecovers the Tailwind/PostCSS build path thattest:intdoes not.Summary by CodeRabbit