Skip to content

fix(security): bump Next.js 16.1.6 → 16.2.10 (CVE patches through May 2026 release)#38

Merged
lacymorrow merged 1 commit into
mainfrom
lac-2876/bump-next-16-2-10
Jul 20, 2026
Merged

fix(security): bump Next.js 16.1.6 → 16.2.10 (CVE patches through May 2026 release)#38
lacymorrow merged 1 commit into
mainfrom
lac-2876/bump-next-16-2-10

Conversation

@lacymorrow

Copy link
Copy Markdown
Contributor

Summary

Paperclip issue: LAC-2876 (parent LAC-2792)

The dead lacymorrow/bones-www repo bumped Next.js to 16.2.1 in March 2026 for a CVE fix, but that patch never reached this repo — the one that actually deploys bones.sh. This repo was still on 16.1.6.

CVEs affecting 16.1.6, fixed by this bump

  • March 2026 batch (patched in 16.1.7 — what the bones-www bump addressed): CVE-2026-29057 (HTTP request smuggling in rewrites), CVE-2026-27978 (null-origin Server Actions CSRF bypass), CVE-2026-27977 (allowedDevOrigins bypass), CVE-2026-27979 (postponed-resume DoS), CVE-2026-27980 (unbounded image disk cache)
  • CVE-2026-23869 (April 2026, DoS with Server Components, patched 16.2.3)
  • May 2026 security release — twelve CVEs incl. middleware/proxy bypasses, XSS, SSRF, cache poisoning (patched 16.2.6)

Target is 16.2.10, current stable. Companion packages (@next/bundle-analyzer, @next/eslint-plugin-next, @next/mdx, eslint-config-next) bumped to match.

Workaround included

Webpack builds ≥16.2.0 have a regression (vercel/next.js#91735, still open) where page.mdx metadata exports lose their RSC bundle layer and the build fails with "attempting to export metadata from a component marked with use client". with-mdx.ts now restores bundleLayer on the MDX swc-loader rule in the server compiler; remove when upstream fixes it.

Testing

  • bun run test — 4/4 pass
  • bun run build — clean production build (webpack), all 27 routes generated
  • Smoke test on next start: /, /privacy-policy, /terms-of-service, /eula, /features all 200 with correct server-rendered <title> metadata from the MDX pages

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
bones Ready Ready Preview, Comment Jul 20, 2026 1:54pm

Request Review

@github-actions

Copy link
Copy Markdown

Failed to generate code suggestions for PR

…y 2026 release)

16.1.6 is affected by the March 2026 advisory batch (CVE-2026-29057 HTTP
request smuggling in rewrites, CVE-2026-27978 Server Actions CSRF bypass
via null origin, CVE-2026-27977 allowedDevOrigins bypass, CVE-2026-27979
and CVE-2026-27980 DoS), CVE-2026-23869 (April, patched 16.2.3), and the
twelve-CVE May 2026 security release (patched 16.2.6). 16.2.10 is current
stable. Companion @next/* and eslint-config-next packages bumped to match.

Works around vercel/next.js#91735 (webpack regression since 16.2.0:
page.mdx metadata exports lose their RSC bundle layer and fail the build)
by restoring bundleLayer on the MDX swc-loader rule in the server
compiler.

LAC-2876

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@lacymorrow
lacymorrow force-pushed the lac-2876/bump-next-16-2-10 branch from 3339a39 to b79cf68 Compare July 20, 2026 13:52
@lacymorrow
lacymorrow merged commit db0f66f into main Jul 20, 2026
6 of 7 checks passed
@lacymorrow
lacymorrow deleted the lac-2876/bump-next-16-2-10 branch July 20, 2026 14:05
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.

1 participant