Skip to content

fix(security): upgrade Next.js 16.2.0→16.2.10 and patch ws vulnerabilities#82

Draft
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-5lywk7
Draft

fix(security): upgrade Next.js 16.2.0→16.2.10 and patch ws vulnerabilities#82
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-5lywk7

Conversation

@caimanoliveira

Copy link
Copy Markdown
Owner

Summary

  • Upgrades next from 16.2.0 to ^16.2.10, resolving 14 CVEs (high/moderate severity)
  • Patches ws WebSocket memory vulnerabilities via npm audit fix
  • Build verified clean on Next.js 16.2.10 — all 22 routes compile successfully, TypeScript passes

CVEs Fixed in Next.js 16.2.10

CVE Severity Description
GHSA-q4gf-8mx6-v5v3 High DoS with Server Components
GHSA-8h8q-6873-q5fj High DoS with Server Components (follow-up)
GHSA-26hh-7cqf-hhc6 High Middleware/Proxy bypass via segment-prefetch (incomplete fix follow-up)
GHSA-3g8h-86w9-wvmq High Middleware/Proxy redirect cache poisoning
GHSA-ffhc-5mcf-pf4q High XSS in App Router CSP nonces
GHSA-vfv6-92ff-j949 High Cache poisoning via RSC cache-busting collisions
GHSA-gx5p-jg67-6x7h High XSS in beforeInteractive scripts
GHSA-mg66-mrh9-m8jx High DoS via connection exhaustion in Cache Components
GHSA-h64f-5h5j-jqjh High DoS in Image Optimization API
GHSA-c4j6-fc7j-m34r High SSRF in WebSocket upgrades
GHSA-492v-c6pp-mqqv High Middleware/Proxy bypass via dynamic route parameter injection
GHSA-wfc6-r584-vfw7 High Cache poisoning in RSC responses
GHSA-267c-6grr-h53f High Middleware/Proxy bypass via segment-prefetch routes
GHSA-36qx-fr4f-26g5 High Middleware/Proxy bypass in Pages Router i18n

Remaining Known Issue

One postcss <8.5.10 (moderate XSS) lives inside Next.js's own bundled PostCSS. The only npm-suggested fix is downgrading to next@9.3.3 (breaking change) — that is not viable. This will resolve when the Next.js team ships an internal PostCSS bump.

Test plan

  • next build completes without errors on Next.js 16.2.10
  • TypeScript check passes
  • All 22 routes (static + dynamic) generated successfully
  • npm audit shows 0 high-severity vulnerabilities in direct dependencies

🤖 Generated with Claude Code

https://claude.ai/code/session_01N2BsxcdUr6YHb8Qwk137NJ


Generated by Claude Code

Fixes 14 CVEs in next@16.2.0 (DoS via Server Components, Middleware/Proxy
bypasses, cache poisoning, XSS, SSRF) by upgrading to 16.2.10.
Also patches ws WebSocket memory disclosure/exhaustion via npm audit fix.
Build verified clean on Next.js 16.2.10.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N2BsxcdUr6YHb8Qwk137NJ
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
mentoria-crm Error Error Jul 12, 2026 11:07am
splinter Ready Ready Preview, Comment Jul 12, 2026 11:07am
splinter-yhcm Ready Ready Preview, Comment Jul 12, 2026 11:07am

…versions

Python 3.9 is no longer available on ubuntu-latest runners (available: 3.10–3.14).
Also bumps actions/checkout v2→v4 and actions/setup-python v1→v5 to avoid
Node 20 deprecation warnings. Fixes the push trigger branch master→main.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N2BsxcdUr6YHb8Qwk137NJ
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