Skip to content
VibeSafeDaily

Exposed data

Your Next.js app still runs a version the October 14 security update fixed

Cataloged October 30, 2026 · v0 · Cursor · Bolt · 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 October 14, 2026, when Next.js shipped 16.4.1 and 15.5.28 to fix two critical unauthenticated remote code execution bugs and one high-severity denial of service. 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 patched release on their line at all.

Root cause

The Next.js team's October 14, 2026 security update says the fixes are in v16.4.1 (Active LTS) and v15.5.28 (Maintenance LTS), and asks everyone to patch. It covers three advisories. GHSA-2464-fhr4-w9xw (CVE-2026-96889), rated Critical 9.5: a memory bug in an upstream library used by the Image Optimization API can lead to remote code execution when SVG files are used and Next.js runs on glibc-based Linux. It affects next 10.0.0 through 15.5.27 and 16.0.0 through 16.4.0. The stated workaround is to make sure the sharp version Next.js uses is 0.35.5 or later; upgrading Next.js pulls a fixed sharp. GHSA-673q-mjm6-r5xr, rated Critical: apps on next 16.0.0 through 16.4.0 using the App Router with Cache Components can be hit with remote code execution when a use cache function returns multiple typed arrays. There is no workaround, and the advisory says to upgrade even if your app has no such function. GHSA-p3m5-59mp-jv5r (CVE-2026-94482), rated High: crafted requests to an App Router app with at least one Server Action can cause excessive CPU use that blocks further requests in the same process. It affects next 13.0.0 through 15.5.27 and 16.0.0 through 16.4.0, and the only fix is upgrading. The patched versions listed are only 15.5.28 and 16.4.1. The npm registry's newest 14.x release is 14.2.35 from December 2025, so a Next.js 14 app has no 14.x patch to install and has to move to 15.5.28 or later. On the 15.5 line, the 15.5.28 package still accepts sharp ^0.34.3 as well as ^0.35.5, so an old lockfile can keep a sharp below 0.35.5; check it. Hosting changes the picture per bug: Netlify's changelog says some of these paths have limited impact on its platform but still strongly recommends upgrading and redeploying, and warns that public deploy previews and branch deploys can stay vulnerable until they are deleted.

Before and after

The before lockfile entry is a 15.5 release from before October 14, 2026. The after entry is the patched 15.5.28. Commit package.json and the lockfile together, then confirm with npm ls sharp that sharp is 0.35.5 or later.

Before

"node_modules/next": {
  "version": "15.5.27"
}

After

"node_modules/next": {
  "version": "15.5.28"
}

Fix prompt

In this project only. Do not scan or test anyone else's app.

1. Run npm ls next sharp react react-dom (or the pnpm or yarn equivalent for this project's lockfile) and tell me the exact installed versions. Read them from the lockfile, not just the ranges in package.json.

2. If next is 16.x and below 16.4.1, upgrade it: npm install next@16.4.1 (a later 16.4.x is fine). If eslint-config-next is in package.json, set it to the same version.

3. If next is 15.x and below 15.5.28, upgrade it: npm install next@15.5.28. Then run npm ls sharp again. If sharp is below 0.35.5, run npm install sharp@^0.35.5.

4. If next is 14.x or older, there is no patched release on that line. Do not pin a newer 14.x and call it fixed. Make a plan to move to next 15.5.28 following the official Next.js upgrade guide for version 15, and list the breaking changes that apply to this codebase before changing code. Until that upgrade ships, install sharp 0.35.5 or later as a stopgap for the image bug only; it does not fix the Server Actions denial of service.

5. Keep react and react-dom at versions the new next version accepts as peer dependencies. Do not use --force or --legacy-peer-deps to hide a conflict. If there is a conflict, stop and show it to me.

6. Commit package.json and the updated lockfile together. Run lint, the build, and the tests, and fix anything the upgrade broke.

7. Redeploy production from that commit. Then tell me where in my host's build log to confirm the Next.js version that was actually built.

8. List any public preview or branch deploys this project has on its host, so I can delete or protect the ones built from old commits.

9. If this repo is on GitHub, tell me how to turn on Dependabot alerts and security updates for it so the next advisory opens a pull request.

Do not print keys, tokens, 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.

  1. In your own project, run npm ls next sharp. next 16.x below 16.4.1, 15.x below 15.5.28, or anything 14.x or older is a version the October 14, 2026 update did not fix. sharp below 0.35.5 is the version the image advisory warns about.
  2. Open your own lockfile and search for node_modules/next (package-lock.json) or next@ (pnpm-lock.yaml, yarn.lock). That version is what your host installs, even when package.json says a range like ^15.
  3. Open the latest production build log on your own host and find the line where Next.js prints its version. If it still shows the old version after you upgraded, the deploy did not use the new lockfile.
  4. Search your own code for "use server" and "use cache". Any Server Action puts an App Router app in range of the denial of service advisory, and use cache on 16.x is the case the critical Cache Components advisory names. Upgrade either way.

Common questions

My app is on Next.js 14. Is there a 14.x patch?

No. The advisories list only 15.5.28 and 16.4.1 as patched, and the image advisory's affected range starts at 10.0.0, so Next.js 14 is in range. The newest 14.x on npm is 14.2.35 from December 2025. Plan the move to 15.5.28 or later. As a stopgap for the image bug only, the advisory's workaround is sharp 0.35.5 or later.

I don't use use cache or SVG images. Do I still need to upgrade?

Yes. The denial of service advisory covers any App Router app with at least one Server Action on next 13.0.0 through 15.5.27 or 16.0.0 through 16.4.0, and its only fix is upgrading. The use cache advisory also says to upgrade even if your app has no such function.

My host runs the build. Isn't it patched for me?

Your host installs whatever your lockfile says. Netlify's changelog says some of these paths have limited impact on its platform, but it still strongly recommends upgrading next to 15.5.28 or 16.4.1 and redeploying, and it warns that public deploy previews and branch deploys can stay vulnerable until they are deleted.

Sources

Same symptom

Same platform