chore: support Next.js 16.4.5, the November 2026 security release

Merged
SO
1mo ago
+293-145

Next.js 16.4.5 is the November 2026 security release (release notes, v16.4.5, 4e5335a00314be7fbb2aace5e9be56a88e64e5a8). It fixes seven advisories. This PR builds, scaffolds and tests against it, and raises the security floor to it.

Changes

  • Catalog and scaffolder.
    • next and @next/routing move to 16.4.5.
    • create-upwind asks for ^16.4.5.
    • The ordinary integration fixtures, the README examples and the independently installed website move to 16.4.5. The website's lock is regenerated (next is exempt from its release-age wait, for security releases).
  • Security floor (@stayingupwind/core/next).
    • SECURITY_FLOOR becomes 16.4.5, and SECURITY_RELEASE_URL the November release notes.
    • SECURITY_CANARY_FLOOR becomes 16.5.0-canary.39, the first canary with all seven fixes (vercel/next.js#101103 to #101109). canary.38 came out hours before 16.4.5 without them.
    • A build or upwind dev on an earlier Next.js now warns.
    • The notes on which fixes travel inside Next.js's own code are updated for this release.
  • Deploy tests.
    • The dispatch default and the nights' release become v16.4.5.
    • The deploy-mode copies are held to 16.4.5. Only app-root-params-getters' upstream directory changed, by cases and a use-cache-dedup fixture. Its copy uses the unchanged use-cache-runtime fixture and case, so only the tree pin moves.
    • The 16.4.4 readings are read again at 16.4.5 (AT_16_4_5, REVIEWED.md). Of the suites they name, 16.4.5 changes only partial-fallback-shell-upgrade's, by one case after the lines its reading records. These readings come from the sources alone, so a night's run at 16.4.5 is the first to judge against them.
  • Native Node path unchanged. It still qualifies exact 16.4.3 and 16.4.4 bytes, and refuses 16.4.5, until a follow-up adds 16.4.5's pins and Pages handler references. Until then:
    • fixtures/next-native stays on 16.4.4.
    • The suites that read 16.4.4's copy read a new next-16-4-4 alias in the adapter's devDependencies, as 16.4.3's do.

What did not change at 16.4.5

  • All 17 package rewrites still apply: 71 files, 95 edits (check-patches.ts).
  • These are not among the files 16.4.5 changed:
    • the scaffolder's agent-rules source (generate-agent-files)
    • the test-install security profile (test/lib)
    • the middleware locale grammar's generator

Checks run locally

  • check-patches.ts against the installed 16.4.5. It also checks the new floors against the range.
  • The suites the bump touches:
    • native release pins and fast-jwt sites, via the alias
    • middleware budget
    • deploy-tests population
    • create-upwind
  • The deploy-tests project: 213 of 214 pass. The one failure is the runner watchdog, a macOS-only /var vs /private/var path.
  • oxfmt and ESLint on every changed file.

Follow-ups

  • Native Node Functions on 16.4.5: release pins, Turbopack runtime check, and Pages getHandler references. The references come from the independent producer, whose fixture can install 16.4.5 once pnpm's one-day release age passes (2026-11-04 18:01 UTC).
  • Separate PRs for related hardening found while reading the advisories against this repository.

Summary by cubic

Builds, scaffolds, and tests against Next.js 16.4.5, the November 2026 security release fixing seven advisories, and raises the security floor from 16.4.1 to 16.4.5 (canary floor 16.5.0-canary.39). All 17 package rewrites still apply. The security warning for a Next.js under the floor now names what 16.4.5 fixes (use cache keying, the Edge adapter, the Node response writer) rather than the React Server Components transport.

Native Node Functions

The native Node path still qualifies exact 16.4.3 and 16.4.4 bytes and refuses 16.4.5. The fixture and suites that read 16.4.4's copy stay pinned via a new next-16-4-4 alias until a follow-up adds 16.4.5 pins and Pages handler references.

Deploy tests

Dispatch default, night runs, and deploy-mode copies move to v16.4.5. Of the suites the copies come from, only app-root-params-getters changed, by cases and a fixture the copy does not use; the 16.4.4 readings are re-read at 16.4.5.

Review notes

  • The nights' and pull requests' node runs at v16.4.5 (cubic P1, CodeRabbit Major): not taken. The worry is that the native path refuses 16.4.5 and would fail those runs. This PR's own node run has already done that: the whole manifest at v16.4.5.
    • 63 of 64 shards pass.
    • The native suites pass: prerender-native-module and turbopack-reports.
    • So do 16.4.5's new advisory suites: edge-x-middleware-set-cookie, stale-compressed-framing and use-cache-binary-args.
    • The same held at 16.4.4 (#436).
  • The one failing shard (node 40/64): avif-svg-signature-confusion, new at 16.4.5.
    • Its <!--ftypavif--> case is the detector bug that #451 fixes. Here the SVG was taken for an AVIF and answered as a WebP.
    • With that fixed, both cases fail only on what they assert of Vercel's deployment: an INVALID_IMAGE_OPTIMIZE_REQUEST body, and the SVG passed through labelled image/avif. Here it is refused as next start refuses it.
    • Readings for them are taken from a run once #451 is in, not from the sources here.
  • Taken in 4cb62950 (cubic P2/P3, CodeRabbit Minor):
    • The build warning for a Next.js under the floor named 16.4.1's fixes. It now names 16.4.5's.
    • Two sentences of the floor's notes are reworded.
    • The dispatch example canary is now 16.5.0-canary.39, one past the canary floor.
  • License compliance on next-16-4-4: the alias is npm:next@16.4.4, MIT, the same as the existing next-16-4-3 alias. The tool reads an npm alias as a package with no licence.

Summary by CodeRabbit

  • Updates
    • Updated the supported Next.js version across the app, setup guidance, and deployment checks to 16.4.5.
    • Raised the minimum security-fixed Next.js version to 16.4.5 and updated the supported canary threshold.
  • Documentation
    • Updated version references and security guidance to reflect the latest supported release.