fix: resolve all Dependabot security alerts - #15
Merged
Conversation
Patch-level update for all scaffoldable themes and examples. Addresses multiple Next.js security advisories (middleware bypass, Server Action DoS/SSRF, cache confusion, image optimization SVG DoS) that are fixed in 16.2.12. Archive templates left unchanged — not in workspaces. Co-authored-by: Cursor <cursoragent@cursor.com>
Add npm overrides for three vulnerable transitive dependencies that upstream packages have not yet bumped: - sharp 0.35.3 (was 0.34.5 via Next.js) — libvips CVEs, GHSA-f88m-g3jw-g9cj - postcss 8.5.23 (was 8.4.31 via Next.js) — XSS + source-map traversal CVEs - @hono/node-server 2.0.12 (was 1.19.14 via MCP SDK) — Windows path traversal in serve-static, GHSA-frvp-7c67-39w9 Nested overrides target next and @modelcontextprotocol/sdk specifically so the lockfile resolves patched versions throughout the workspace tree. npm audit now reports 0 vulnerabilities. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the stale note about postcss being unfixable until a Next.js release — overrides in package.json now pin patched versions of postcss, sharp, and @hono/node-server. npm audit --audit-level=high passes clean. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Resolves all three open Dependabot alerts (and additional transitive advisories surfaced by
npm audit) without breaking any existing functionality.Before: 3 Dependabot alerts (1 high, 2 moderate) + additional Next.js CVEs
After:
npm auditreports 0 vulnerabilitiesWhat was vulnerable
sharppostcss@hono/node-server@modelcontextprotocol/sdk(MCP server)What each CVE means in practice
sharp — libvips vulnerabilities (CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591). Affects image processing of untrusted input via
next/image.postcss — Three separate issues:
</style>in CSS stringify output (GHSA-qx2v-qp2m-jg93)sourceMappingURL(GHSA-6g55-p6wh-862q)Low practical risk for docs sites (no user-submitted CSS), but pinned to latest patched version regardless.
@hono/node-server — Windows-only path traversal in
serve-staticvia encoded backslash (%5C). Relevant only if running the MCP server on Windows.How we fixed it
1. Next.js patch bump (
16.2.10→16.2.12)Updated across all active workspaces (3 themes + 3 examples). Addresses multiple Next.js security advisories:
Archive templates left unchanged (not in workspaces, reference only).
2. npm overrides for transitive dependencies
Next.js 16.2.12 still bundles vulnerable
postcss(8.4.31) andsharp(^0.34.5). The MCP SDK still depends on@hono/node-server^1.19.9. Since upstream hasn't bumped these yet, we pin patched versions via rootpackage.jsonoverrides:Nested overrides target
nextand@modelcontextprotocol/sdkspecifically so the lockfile resolves patched versions throughout the entire workspace tree.3. CI comment update
Removed the stale note in
.github/workflows/ci.ymlthat said postcss was unfixable until a Next.js release — overrides now handle it.Commits
chore: bump Next.js 16.2.10 → 16.2.12fix: override transitive deps to resolve Dependabot alertschore: update CI audit commentVerification
All CI-equivalent commands pass locally:
Resolved versions in lockfile:
sharp@0.35.3(was 0.34.5)postcss@8.5.23(was 8.4.31)@hono/node-server@2.0.12(was 1.19.14)Follow-up (not in this PR)
These overrides can be removed once upstream packages ship patched versions:
postcssandsharp— watch for 16.2.13+@hono/node-server@≥2.0.5— watch for 1.30.0+When that happens, drop the corresponding override entries and regenerate the lockfile.
Made with Cursor