Skip to content

fix(deps): upgrade next 16.2.0 → 16.2.10 to patch 14 CVEs#84

Draft
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-35h1sd
Draft

fix(deps): upgrade next 16.2.0 → 16.2.10 to patch 14 CVEs#84
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-35h1sd

Conversation

@caimanoliveira

Copy link
Copy Markdown
Owner

Summary

  • Upgrades Next.js from 16.2.0 to ^16.2.10 (patch release) to close 14 known CVEs
  • Fixes ws memory disclosure vulnerabilities via npm audit fix
  • Build passes on 16.2.10 with all 22 routes compiling successfully — TypeScript clean

Vulnerabilities fixed

High severity — Next.js 16.2.0

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

High severity — ws

CVE Description
GHSA-58qx-3vcg-4xpx Uninitialized memory disclosure
GHSA-96hv-2xvq-fx4p Memory exhaustion DoS from tiny fragments

Remaining known issue

A moderate PostCSS XSS (GHSA-qx2v-qp2m-jg93) persists inside Next.js's internal bundled copy of postcss (node_modules/next/node_modules/postcss@8.4.31). The only npm audit fix for it would downgrade Next.js to 9.3.3 — a breaking major change. This is a vendor-internal dependency; the risk is low for this project (PostCSS runs at build time, not at runtime in the browser). No action taken.

Context

Routine automated audit run on 2026-07-14. No commits were made to the repository in the preceding 24 hours; the last merged work (PR #1) landed 2026-04-18 and added the Trilhas Guiadas feature (US-026/027/028). This PR addresses the security debt that accumulated since then.


Generated by Claude Code

Addresses high-severity vulnerabilities in Next.js 16.2.0:
- Middleware/proxy bypass (GHSA-267c, GHSA-492v, GHSA-26hh, GHSA-36qx)
- Cache poisoning (GHSA-3g8h, GHSA-vfv6, GHSA-wfc6)
- XSS via CSP nonces and beforeInteractive scripts (GHSA-ffhc, GHSA-gx5p)
- DoS via Server Components, Cache Components, Image API (GHSA-q4gf, GHSA-8h8q, GHSA-mg66, GHSA-h64f)
- SSRF via WebSocket upgrades (GHSA-c4j6)

Also fixes ws memory disclosure (GHSA-58qx, GHSA-96hv) via npm audit fix.
Remaining: moderate postcss XSS (internal to next bundle; fix requires
major Next.js downgrade, not viable).

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

vercel Bot commented Jul 14, 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 14, 2026 7:13am
splinter Ready Ready Preview, Comment Jul 14, 2026 7:13am
splinter-yhcm Ready Ready Preview, Comment Jul 14, 2026 7:13am

Python 3.9 was removed from GitHub Actions runners; available versions
are 3.10–3.14. Also upgrades from deprecated actions/setup-python@v1
to v5 to silence the Node 20 deprecation warning.

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