Repository navigation
deps: clear five stale security overrides - #357
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Every existing override had been outrun by its advisory widening, so the pins were holding vulnerable versions rather than fixing them. - fast-uri: the override pinned 3.1.2, below both GHSA-4c8g-83qw-93j6 (<3.1.3) and GHSA-v2hh-gcrm-f6hx (<=3.1.3). Now 3.1.4. - js-yaml: override targeted <=4.1.1 -> 4.2.0, but GHSA-52cp-r559-cp3m covers <4.3.0, so the resolved 4.2.0 was still vulnerable. Now <4.3.0 -> 4.3.0. - brace-expansion: the override only covered the v5 line. GHSA-3jxr-9vmj-r5cp is against v1 (<1.1.16), and [email protected] pulled 1.1.14. Adds a v1-line override; the v5 one is unchanged. - sharp: GHSA-f88m-g3jw-g9cj (libvips CVEs, <0.35.0). [email protected] pins it as an exact optional dep, so bumping the devDependency alone left a second copy behind; an override collapses both to one. sharp lands on 0.35.3, not 0.35.0: 0.35.0 shipped an exports map with no types condition, which breaks tsc for every sharp importer. 0.35.1 fixed it. 0.35.x also drops the callable type namespace, so the two files that used sharp.OverlayOptions now import the named type. Not fixed: @hono/node-server (GHSA-frvp-7c67-39w9, medium). It arrives via shadcn -> @modelcontextprotocol/[email protected], whose newest release still declares ^1.19.9, so the patched 2.0.5 is outside the range its dependent supports. Forcing it would be a major bump against a declared constraint; the vulnerability is a Windows-only serve-static path traversal in a build-time dev dependency. Revisit when the SDK moves to 2.x. Verified: tsc, lint, next build, and test:int (341 passed) all clean. Co-Authored-By: Claude Opus 5 <[email protected]>
87987ad to
f0b5b10
Compare
Clears 5 of the 6 Dependabot advisories currently open against
main, ahead of the promotion in #351.The pattern
Every one of these already had an override in
pnpm.overrides— and every one had been outrun by its advisory widening. The pins were holding vulnerable versions rather than fixing them, and because Dependabot only reports against the default branch, nothing surfaced until the alerts were read directly.fast-uri<3.1.3)GHSA-v2hh-gcrm-f6hx (
<=3.1.3)3.1.2outright — below both patched versions3.1.4js-yaml<4.3.0)<=4.1.1 → 4.2.0; advisory later widened past 4.2.0<4.3.0 → 4.3.0brace-expansion<1.1.16)[email protected]<1.1.16 → 1.1.16sharp<0.35.0)[email protected]pins sharp as an exact optionalDependency — bumping the devDependency alone left a second copy0.35.3+ overrideTwo things worth flagging
sharp lands on 0.35.3, not the patched 0.35.0. Version 0.35.0 shipped an
exportsmap with notypescondition, which breakstscfor every sharp importer in the repo (8 errors across the OG route, the blog visual spec, and fourtools/blogscripts). Upstream fixed it in 0.35.1. Additionally, 0.35.x drops the callable type namespace, so the two files that referencedsharp.OverlayOptionsnow import the named type instead — that is the only source change in this PR.fast-uriis the one runtime-scope alert, but consumers were never exposed. It reaches us throughajv, which declaresfast-uri: ^3.0.1. pnpm overrides are a lockfile-local mechanism and do not propagate to published packages, so anyone installingpayload-componentsresolves their ownfast-uriand has been getting 3.1.4 on a fresh install regardless. This fix closes the alert on our lockfile, not a consumer-facing hole.Not fixed: @hono/node-server (GHSA-frvp-7c67-39w9, medium)
Left open deliberately. It arrives via
shadcn → @modelcontextprotocol/[email protected] → @hono/[email protected]. The patched version is 2.0.5, but the newest published MCP SDK still declares^1.19.9— the fix is outside the range its own dependent supports, so there is no clean upgrade path. Forcing it would be a major-version override against a declared constraint, on a build-time dev dependency, for a Windows-only path-traversal inserve-staticthat this repo (darwin dev, Linux CI) does not exercise.Recommend dismissing it as tolerable risk until the MCP SDK moves to hono-node-server 2.x, rather than carrying a risky override.
Verification
Run locally on this branch, exit codes captured individually rather than through a pipe:
tsc --noEmit— cleanpnpm lint— cleanpnpm build(production, exercises sharp via image optimization) — cleanpnpm test:int— 341 passed, 1 skipped, 0 failed🤖 Generated with Claude Code