Skip to content

deps: clear five stale security overrides - #357

Merged
Ducksss merged 1 commit into
devfrom
deps/security-refresh-2026-07
Jul 27, 2026
Merged

Ducksss merged 1 commit into
devfrom
deps/security-refresh-2026-07

Conversation

@Ducksss

@Ducksss Ducksss commented Jul 27, 2026

Copy link
Copy Markdown
Owner

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.

Package Scope Advisory Was resolving Why the override missed Now
fast-uri runtime GHSA-4c8g-83qw-93j6 (<3.1.3)
GHSA-v2hh-gcrm-f6hx (<=3.1.3)
3.1.2 Override pinned 3.1.2 outright — below both patched versions 3.1.4
js-yaml dev GHSA-52cp-r559-cp3m (<4.3.0) 4.2.0 Override targeted <=4.1.1 → 4.2.0; advisory later widened past 4.2.0 <4.3.0 → 4.3.0
brace-expansion dev GHSA-3jxr-9vmj-r5cp (<1.1.16) 1.1.14 + 5.0.7 Override only covered the v5 line; the advisory is against v1, pulled in by [email protected] adds <1.1.16 → 1.1.16
sharp dev GHSA-f88m-g3jw-g9cj (<0.35.0) 0.34.5 No override, and [email protected] pins sharp as an exact optionalDependency — bumping the devDependency alone left a second copy 0.35.3 + override

Two things worth flagging

sharp lands on 0.35.3, not the patched 0.35.0. Version 0.35.0 shipped an exports map with no types condition, which breaks tsc for every sharp importer in the repo (8 errors across the OG route, the blog visual spec, and four tools/blog scripts). Upstream fixed it in 0.35.1. Additionally, 0.35.x drops the callable type namespace, so the two files that referenced sharp.OverlayOptions now import the named type instead — that is the only source change in this PR.

fast-uri is the one runtime-scope alert, but consumers were never exposed. It reaches us through ajv, which declares fast-uri: ^3.0.1. pnpm overrides are a lockfile-local mechanism and do not propagate to published packages, so anyone installing payload-components resolves their own fast-uri and 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 in serve-static that 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 — clean
  • pnpm lint — clean
  • pnpm build (production, exercises sharp via image optimization) — clean
  • pnpm test:int — 341 passed, 1 skipped, 0 failed

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 27, 2026 06:28
@vercel

vercel Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview, Comment Jul 27, 2026 7:23am
payload-components-97bf Ready Ready Preview, Comment Jul 27, 2026 7:23am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 40029900-c77d-4007-886e-1eeb1ef2904b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deps/security-refresh-2026-07

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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]>

This branch was successfully deployed

2 active deployments
Preview – payload-components — f0b5b105 Deployed Jul 27, 2026 by vercel[bot]
Preview – payload-components-97bf — f0b5b105 Deployed Jul 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants