Exposed data
Your Next.js app is missing the November 3 security release
Cataloged November 4, 2026 · v0 · Cursor · Bolt · Lovable · Replit
Symptom
Nothing looks broken. The app builds, deploys, and works. But package.json and the lockfile still hold a Next.js release from before November 3, 2026, when Next.js shipped 16.4.5 (Active LTS) and 15.5.29 (Maintenance LTS) to fix seven security advisories. The one you can look for in your own browser is on Edge routes. An App Router Edge Route Handler or a Pages Router Edge API route that sets a cookie with NextResponse.cookies.set() also sends the serialized cookie in a response header named x-middleware-set-cookie. Unlike Set-Cookie, that header can be read by JavaScript on the same origin, so an HttpOnly cookie value, such as a session token, becomes readable. That requires a sensitive cookie set on an affected response and attacker-controlled JavaScript already running on the same origin. It is not a way to run JavaScript by itself. The release applies whether you deploy on Vercel or run the server yourself. AI coding tools rarely bump framework versions unless you ask, and a committed lockfile keeps installing the same old version on every redeploy. Apps still on Next.js 14 or older have no patch on that line.
Root cause
On November 3, 2026 the Next.js blog published a security release and asked everyone to patch. The fixed versions are next 16.4.5 (Active LTS) and next 15.5.29 (Maintenance LTS). It covers seven advisories. The one to check first is GHSA-f3mh-rxg3-f5g2 (CVE-2026-119346), rated moderate, with a CVSS score of 6.0. It affects next 16.0.0 through 16.4.2 and next 15.0.0 through 15.5.28. App Router Edge Route Handlers and Pages Router Edge API routes that set a cookie with NextResponse.cookies.set() also send the serialized cookie in an internal response header named x-middleware-set-cookie. Unlike Set-Cookie, that header can be read by JavaScript on the same origin, so an HttpOnly cookie value, such as a session token, becomes readable. The impact requires a sensitive cookie set on an affected response and attacker-controlled JavaScript on the same origin. It is not a way to run JavaScript by itself. The reproduced leak did not affect Node.js-runtime route handlers, and it did not affect cookies set with cookies().set(). The same release also fixes six more issues. Combining unstable_cache and 'use cache' can disclose another tenant's cached data (GHSA-mfr8-8qww-v76h, rated High in the Next.js blog). Nested 'use cache' can disclose a value across root params (GHSA-vc7v-qv4w-wrv8). Binary arguments to 'use cache' can disclose or poison another user's cache (GHSA-rhh4-g77r-r9qj). Self-hosted next start with Cache Components can poison a shared shell cache. Self-hosted apps that forward a fetched response behind certain HTTP/1.1 proxies can inject one client's response into another's (GHSA-pc58-hwjq-p385). Image optimization has an SVG rejection bypass (GHSA-7qx7-33qx-rqx2). Version 15.5.29 contains only the response-injection, SVG, and Edge cookie fixes. The cache issues are 16.x features. Releases before 15.x, including 14.x and older, are unsupported and get no patch. Netlify's write-up says to upgrade and redeploy, and that @netlify/plugin-nextjs 5.16.6 is needed for one issue. That plugin is installed automatically unless you pinned a version.
Before and after
package-lock.json. The before entry is next 16.4.2, inside the range GHSA-f3mh-rxg3-f5g2 lists, which is 16.0.0 through 16.4.2. The after entry is 16.4.5, the November 3, 2026 Active LTS release. On the 15 line, move to 15.5.29. If eslint-config-next is present, set it to the same version, commit the lockfile, reinstall, rebuild, and redeploy.
Before
"node_modules/next": {
"version": "16.4.2"
}After
"node_modules/next": {
"version": "16.4.5"
}Fix prompt
In this project only. Do not scan or test anyone else's app. 1. Run npm ls next (or the pnpm or yarn equivalent for this project's lockfile) and tell me the exact installed version. Read it from the lockfile, not just the range in package.json. If this project does not use next, say so and stop. 2. If next is 16.x, upgrade it to 16.4.5: npm install next@16.4.5. If eslint-config-next is in package.json, set it to 16.4.5 as well. 3. If next is 15.x, upgrade it to 15.5.29: npm install next@15.5.29. If eslint-config-next is in package.json, set it to 15.5.29 as well. Stay on 15 if that is the major this project already uses. 15.5.29 contains the response-injection, SVG, and Edge cookie fixes from this release. The cache fixes are 16.x features. 4. If next is 14.x or older, there is no patch. Those releases are unsupported. Do not pin a newer 14.x and call it fixed. Make a plan to move to next 15.5.29 or 16.4.5. List what in this codebase would have to change, and wait for me to pick a version before you edit application code. 5. Reinstall dependencies. Run the build. Commit package.json and the updated lockfile together. Fix anything the upgrade broke. Do not use --force or --legacy-peer-deps to hide a conflict. If there is a conflict, stop and show it to me. 6. Redeploy this project from that commit. Then tell me where in my host's build log to confirm the Next.js version that was actually built. 7. If this project deploys on Netlify and @netlify/plugin-nextjs is pinned below 5.16.6, bump that pin to 5.16.6 and include it in the same commit. If it is not pinned, say so and leave it. Netlify installs that plugin automatically unless it is pinned. 8. Search this project's code for an Edge runtime and for NextResponse.cookies.set and cookies().set. List each file and line. Do not change those call sites in this step. Do not print keys, tokens, passwords, or environment variable values. Do not edit unrelated files.
Paste this into the coding tool that has your own project open.
2-minute self-check
These steps are for an app you own. Do not run them against someone else's project.
- In your own project, open package.json and run npm ls next. The November 3, 2026 releases are next 16.4.5 and next 15.5.29. GHSA-f3mh-rxg3-f5g2 affects 16.0.0 through 16.4.2 and 15.0.0 through 15.5.28. 14.x and older are unsupported and get no patch. After you upgrade, redeploy, and confirm the version in your own host's build log.
- In your own browser, open your own app and sign in. Open DevTools, then the Network tab, and look at responses from your own routes for a header named x-middleware-set-cookie. That is the header the Edge cookie advisory says same-origin JavaScript can read.
- In your own code, search for runtime = 'edge' and for cookies.set. An App Router Edge Route Handler or a Pages Router Edge API route that calls NextResponse.cookies.set() is the case GHSA-f3mh-rxg3-f5g2 names. The reproduced leak did not affect Node.js-runtime route handlers or cookies set with cookies().set().
- If you deploy your own app on Netlify, check whether @netlify/plugin-nextjs is pinned. A pin below 5.16.6 needs a bump to 5.16.6. If it is not pinned, Netlify installs it automatically. Upgrade next and redeploy either way.
Common questions
My route handlers run on the Node.js runtime. Do I still need this upgrade?
The reproduced leak did not affect Node.js-runtime route handlers, and it did not affect cookies set with cookies().set(). GHSA-f3mh-rxg3-f5g2 applies to App Router Edge Route Handlers and Pages Router Edge API routes that set a cookie with NextResponse.cookies.set(). The November 3 release still fixes the other advisories. On 16.x those include the cache issues. 15.5.29 contains the response-injection, SVG, and Edge cookie fixes. Upgrade to 16.4.5 or 15.5.29 for the major you already use.
I am on Next.js 14. Is there a 14.x patch for this release?
No. Next.js's support policy says releases before 15.x, including 14.x and older, are unsupported and get no patch. Plan the move to 15.5.29 or 16.4.5.
I deploy on Netlify. Is upgrading next enough?
Netlify's write-up says to upgrade next and redeploy. It also says @netlify/plugin-nextjs 5.16.6 is needed for one issue. That plugin is installed automatically unless you pinned it. If you pinned an older version, bump the pin to 5.16.6, then redeploy.
Sources
- Next.js Blog: November 2026 security release (November 3, 2026)
- next v16.4.5 release (November 3, 2026)
- next v15.5.29 release (November 3, 2026)
- Next.js advisory GHSA-f3mh-rxg3-f5g2 (CVE-2026-119346): HttpOnly cookie exposure on Edge routes
- Netlify Changelog: Next.js security vulnerabilities (November 3, 2026)
- Next.js support policy