Verdict
Install 16.4.5 or later (or 15.5.29): seven more advisories on November 3 are fixed only there, and 16.4.6 on November 9 adds bug fixes only. On October 14, two critical remote code execution bugs were fixed in 16.4.1 only; every 16.3 release is affected and for days npm audit did not flag them. Before that, 16.3.0 carried 9 published advisories (3 critical) and 16.3.7 carried 6, because the September 30 fixes skipped it. By October 23, npm audit counted 10 on 16.3.7 and 3 on 16.3.8. The upgrade built cleanly on every version I tried. The traps are in the tools: npm audit fix jumps you a minor version or does nothing at all, and next upgrade crashes on Windows.
Tested on
- next
- 16.3.0, 16.3.7, 16.3.8, 16.4.0 to 16.4.6, 15.5.27, 15.5.28, 15.5.29
- npm
- 11.9.0; 11.19.1 on GitHub Actions (November 10)
- Node / OS
- 24.14.0 / Windows 11 Pro; 24.22.2 / Ubuntu (GitHub Actions, November 10)
- Advisories
- GitHub, as of Oct 15, 2026
✓ Re-verified on next 16.4.6, newest 16.3.x 16.3.8 (Linux): 4/4 checks still hold · results
Contents
Short answer: no 16.3 release has the fixes. Install 16.4.5 or later; on November 23, 2026 the latest was 16.4.6, and 15.5.29 for the 15 line:
npm i next@16.4.6
Next.js has published a lot of security fixes since July, and the version numbers don’t make it obvious which release actually has them. The worst case is 16.3.7: it came out on September 29, the day before a scheduled security release, and it’s a bug-fix release only. Next.js’s own announcement says so.
So I took one small App Router app (an image, a server action, a next/og route and middleware: the features the advisories touch) and ran npm audit and next build on it at each step.
October 14: two critical RCEs, and no fix for 16.3
On October 14, Next.js published three new advisories and released 16.4.1 and 15.5.28:
| Advisory | Severity | Affected | Patched in |
|---|---|---|---|
Remote code execution in use cache functions returning typed arrays |
critical | 16.0.0 to 16.4.0 | 16.4.1 |
| Remote code execution in the Image Optimization API with SVG files (CVE-2026-96889) | critical | 10.0.0 to 15.5.27, 16.x to 16.4.0 | 15.5.28, 16.4.1 |
| Denial of service in App Router Server Actions | high | 13.0.0 to 15.5.27, 16.0.0 to 16.4.0 | 15.5.28, 16.4.1 |
There is no 16.3.9. Every 16.3 release, including 16.3.8, is affected by both critical bugs, so staying on the 16.3 line is no longer an option. These look like the two issues the September 30 announcement said were “pending upstream coordination” (below).
Move to 16.4.5 or later (or 15.5.29 if you’re on Next.js 15). 16.4.1 fixed the October 14 bugs, but seven more advisories published on November 3 are fixed only in 16.4.5 and 15.5.29 (below). The newest release, 16.4.6 (November 9), has bug fixes only, so 16.4.5 is still the first version with every fix:
npm i next@16.4.5The advisories list no workaround for the use cache bug (“upgrade immediately even if your application does not have similar functions”), and the Server Actions bug only affects apps that use the App Router with Server Actions. For the SVG bug, the advisory’s workaround is making sure the sharp used by Next.js is at least 0.35.5. Fresh installs already get that, but an older lockfile can keep an old sharp, so check npm ls sharp.
November 3: seven more advisories, fixed in 16.4.5 and 15.5.29
On November 3, Next.js published seven advisories, all rated medium (GitHub security advisories for vercel/next.js), and released 16.4.5 and 15.5.29. Every 16.x release up to 16.4.4 is affected by at least four of them:
| Advisory (GitHub) | Affected | Patched in |
|---|---|---|
| Cross-client response injection when forwarding fetched responses (self-hosted) | 16.0.0 to 16.4.4, up to 15.5.28 | 16.4.5, 15.5.29 |
| SVG rejection bypass in image optimization | 16.0.0 to 16.4.4, 15.0.0 to 15.5.28 | 16.4.5, 15.5.29 |
| HttpOnly cookie exposure through an internal header on Edge runtime routes | 16.0.0 to 16.4.4, 15.0.0 to 15.5.28 | 16.4.5, 15.5.29 |
Cross-user cache disclosure in use cache with binary arguments |
16.0.0 to 16.4.4 | 16.4.5 |
| Cache poisoning of fallback shells via placeholder route params | 16.4.0 to 16.4.4 | 16.4.5 |
Information disclosure across root params via unstable_cache() |
16.3.0 to 16.4.4 | 16.4.5 |
Cache leak across root params in nested use cache functions |
16.2.0 to 16.4.4 | 16.4.5 |
What npm audit says at each version (before October 14)
| next | npm audit for next |
Build |
|---|---|---|
| 16.3.0 | 9 advisories: 3 critical, 1 high, 4 moderate, 1 low | ✅ passes |
| 16.3.7 | 6 advisories: 1 high, 4 moderate, 1 low | ✅ passes |
| 16.3.8 | not flagged, but affected by the October 14 advisories | ✅ passes |
| 16.4.0 | not flagged, but affected by the October 14 advisories | ✅ passes |
| 16.4.1 | not flagged | ✅ passes |
| 16.4.2 | not flagged | ✅ passes |
| 16.4.3 (October 23) | not flagged (checked October 24 and November 2) | ✅ passes |
| 16.4.4 (November 2) | not flagged (checked November 2, 9 and 10), but affected by the November 3 advisories | ✅ passes |
| 16.4.5 (November 3) | not flagged (checked November 9 and 10) | ✅ passes |
16.4.6 (latest, November 9) |
not flagged (checked November 10) | ✅ passes |
The table reflects npm’s data before October 14. On October 23, a re-check on Linux counted 10 advisories for next on 16.3.7 and 3 on 16.3.8, and 16.4.2 was still not flagged. On October 24, on Windows 11, the counts were the same (10 on 16.3.7, 3 on 16.3.8: 2 critical, 1 high), npm i next@16.3 still gave 16.3.8, and neither 16.4.2 nor 16.4.3 was flagged. On November 1, npm audit flagged 3 advisories on 16.4.0 too (the October 14 ones: 2 critical, 1 high, affected range up to 16.4.0), still 10 on 16.3.7 and 3 on 16.3.8, and none on 16.4.1, 16.4.2 or 16.4.3. There is still no 16.3.9.
Until October 14, npm i next@16.3 (which resolves to 16.3.8) was enough. It isn’t anymore: install 16.4.5 or later, as above. On October 8, both 16.3.8 and 16.4.0 builds of the test app passed with no new warnings.
The only warning on every version was one that has nothing to do with security: The "middleware" file convention is deprecated. Please use "proxy" instead. It’s printed on 16.3.0 too, so it isn’t something the upgrade added.
Which release fixed what
From the published advisories for the 16.3 line:
| Released | Patched in | Fixed |
|---|---|---|
| Aug 25 | 16.3.3, 15.5.24 | Two critical remote code execution bugs: one in the Image Optimization API with AVIF files, one on Windows-hosted servers |
| Sep 22 | 16.3.6, 15.5.26 | A critical remote code execution bug in next/og’s ImageResponse |
| Sep 30 | 16.3.8, 15.5.27 | Seven more: a high SSRF in Image Optimization, five medium (cache poisoning of SSG/ISR pages, use cache leaks, a metadata image route disclosure) and one low (the dev server’s MCP endpoint) |
The September 30 announcement also says two more issues, one critical and one high, are “pending upstream coordination and will be addressed in a later Next.js release”. So today’s patched release won’t be the last one you need. (Update: one critical and one high arrived on October 14, above.) npm audit can only flag what’s been published.
I tested the 16.x line only. The 15.x versions above come from the advisories.
npm audit fix doesn’t do what you’d expect
The obvious fix behaved differently depending on how next was written in package.json:
| package.json had | npm audit fix result |
|---|---|
"next": "^16.3.0" |
Installed 16.4.0, a new minor version, not the 16.3 patch release. package.json unchanged. |
"next": "16.3.0" (exact) |
Did nothing. Printed fix available via npm audit fix --force. |
exact, then npm audit fix --force |
Installed 16.4.0 and rewrote the pin to ^16.4.0. |
The exact pin isn’t unusual: create-next-app@16.3.0 writes "next": "16.3.0" exactly. So on a freshly scaffolded project, npm audit fix leaves every advisory in place, and the forced version quietly removes the pin you had. npm update next on a caret range also went to 16.4.0.
A fresh project has its own version of this. On November 10, npx create-next-app@16.4.6 with the default answers gave a project where npm audit exits with an error:
8 moderate severity vulnerabilities
None of the eight is in next. All come from one minimatch advisory (GHSA-g3hv-75wg-m249), reached through eslint-config-next and typescript-eslint, which are lint tools and not part of the built app. The fix npm offers is this:
fix available via `npm audit fix --force`
Will install eslint-config-next@15.5.29, which is a breaking change
That would put the Next.js 15 lint config into a Next.js 16 project. I didn’t run it. So plain npm audit fails a brand-new 16.4.6 project over a lint dependency, and reports nothing for next on 16.4.4, which has seven open advisories. npm audit --omit=dev is the usual way to audit only what ships; I haven’t tested it on this project.
next upgrade crashes on Windows
Next.js has its own upgrade command, and on Windows it failed immediately, from PowerShell and from Git Bash:
$ npx next upgrade --revision 16.3.8
Error: spawn npx ENOENT
at onErrorNT (node:internal/child_process:484:16)
...
spawnargs: [ '--yes', '@next/codemod@canary', 'upgrade', '16.3.8' ]
It’s reported upstream (vercel/next.js#97980). The fix (#98075) was still unmerged on October 16, and next upgrade on 16.4.0, 16.4.1 and 16.4.2 crashed the same way. So did 16.4.3, re-checked October 24: Error: spawn npx ENOENT.
Run the command next upgrade tries to launch, directly:
npx --yes @next/codemod@canary upgrade 16.3.8What’s new in 16.4.0
16.4.0 came out on October 6. From its release notes: next dev and next build now nudge you when your version has known security issues, next upgrade --ai adds vulnerability coverage, and the Pages Router deprecates React 18. I only built the test app on it (it passed); I didn’t test the nudges or the AI upgrade.
What didn’t work
How this was tested
One App Router app (TypeScript, next/image, a server action, a next/og route, a middleware file) on Windows 11 with Node 24.14.0 and npm 11.9.0. For each of next 16.3.0, 16.3.7, 16.3.8 and 16.4.0: npm audit --json (counting the advisories listed under next) and next build (Turbopack). Then npm audit fix, npm audit fix --force, npm update next and a direct install of the 16.3 line, each starting again from 16.3.0, with both caret and exact versions in package.json. Severities and counts are npm’s on October 8, 2026, and will change as new advisories are published. I didn’t test the vulnerabilities themselves, the Pages Router, custom servers or the 15.x line.
The code for every case above is public, so you can run it yourself: next-security in nk-repro.
November 2, 2026: 16.4.4 appeared on npm at 10:49 UTC. Within the hour, npm audit flagged neither 16.4.3 nor 16.4.4, GitHub listed no advisory newer than October 14, and a fresh create-next-app on 16.4.4 built on Linux. It had no GitHub release notes yet, so if an advisory is published for it later, this section will be updated.
November 9, 2026: GitHub’s advisory list for vercel/next.js shows the seven November 3 advisories with their affected and patched ranges (the table above). npm audit was run in fresh installs of 16.4.4, 16.4.5, 15.5.28 and 15.5.29 on Windows 11 the same night.
November 10, 2026 (India time): 16.4.6 appeared on npm at 20:33 UTC on November 9. Its release notes list three backported changes (Tailwind pinned to 4.3.3 in create-next-app, automatic compression of route handler responses, Turbopack fixes for dev) and no security fix, and GitHub listed no advisory newer than November 3. Within half an hour, on GitHub Actions ubuntu-latest (Node 24.22.2, npm 11.19.1), the test app built on 16.4.4, 16.4.5 and 16.4.6 and npm audit flagged next on none of them (run). On 15.5.28 and 15.5.29 it reported one moderate issue for next that comes through a dependency, with no Next.js advisory listed. A fresh create-next-app@16.4.6 installed next 16.4.6, react 19.3.0, tailwindcss 4.3.3 (pinned exactly), sharp 0.35.5 and typescript 5.9.3, built, and gave the npm audit result quoted above (run).
— N.K., end of entry No.052