Correction on October 16, 2026: The previous version recommended Next.js 16.3.8 as the upgrade target. However, the three advisories published on October 14, 2026 (two CRITICAL RCEs and one HIGH DoS) cover 16.3.8 and 16.4.0 under all three, and 15.5.27 under two of them. The fixed versions are 16.4.1 and 15.5.28, and the 16.3 line has no fixed release. We corrected the upgrade target in "Which version to upgrade to" and in the body diagram to 16.4.1 or later on the 16 line and 15.5.28 or later on the 15 line, and added the conditions of the three advisories. As of October 16, these three do not appear in
npm audit. The conditions for the ten advisories announced on September 30 and October 14 are summarized in Ten Next.js vulnerabilities in October.
npm audit reported "critical" for next, or a vendor asked you, "About the Next.js vulnerability, is your site affected?" Both Next.js advisories published in September 2026 are remote code execution (RCE) issues rated CRITICAL. However, the conditions for being affected are "how you generate OG images" and "the server's OS," and the advisories state that even if your version falls within the range, you are not affected unless the code or hosting conditions are met.
We read the advisory text, the fix commits and the Next.js documentation, and lay out the steps to decide whether your app is affected. We also show the results of npm audit in our test environment (Linux, Node.js v22.22.0, npm 10.9.4). We did not reproduce the attacks.
The two September advisories have completely different conditions
Here are the two advisories as recorded in the GitHub Advisory Database.
| ImageResponse in next/og | Servers on Windows | |
|---|---|---|
| ID | GHSA-vcvr-r3jv-pc5j | GHSA-p293-qw3h-jr36(CVE-2026-75604) |
| Published date | September 30, 2026 | September 8, 2026 |
| Affected versions | 16.2.0 or later and earlier than 16.3.6 | 13.4.0 or later and earlier than 15.5.24; 16.0.0 or later and earlier than 16.3.3 |
| Conditions for being affected | Passing attacker-controllable values to SVG content, attributes or styles in the Node.js version of ImageResponse | Running the server on a Windows file system (Pages Router or App Router without Cache Components) |
| Workaround | Do not pass external values (stated in the advisory) | None. Update immediately if on Windows |
There is one more advisory, published on September 8, about AVIF image optimization (GHSA-2xp9-vwfh-vxw4, with the same fixed versions, 15.5.24 and 16.3.3). This one is an issue in sharp and libheif, which image optimization uses, and we cover it in how to check for the sharp and libheif AVIF vulnerability.
next/og: are you putting values from outside into images on Node.js?
ImageResponse in next/og is a feature that generates images such as per-article OGP images from JSX and CSS. According to the documentation, it uses @vercel/og, Satori and Resvg internally to convert them to PNG.
According to the advisory, the Node.js version of ImageResponse is affected by an upstream vulnerability that could lead to RCE. Apps that pass attacker-controllable values to SVG content, attributes or styles are affected; apps that use the Edge version, and apps that do not pass such values, are not.
Whether the Node.js or Edge version runs is determined by the route's runtime. In the package code for Next.js 16.3.6, if NEXT_RUNTIME is edge, the Edge version of @vercel/og is loaded; otherwise the Node.js version is. The documentation says the default value of runtime is 'nodejs', and 'edge' is deprecated. In other words, opengraph-image.tsx files and Route Handlers that do not specify runtime at all run on the Node.js version.
The fixes are Satori's September 22, 2026 commit "fix: Harden SVG serialization" (tag 0.33.5, adding value escaping and validation of XML names and inline styles) and a Next.js commit from the same day, "Harden next/og SVG serialization" (patching the bundled @vercel/og 0.11.1); the latter is included in 16.3.6.
We covered the main changes in Next.js 16.3 in memory improvements to the Next.js 16.3 development server. Every version from 16.2.0 onward falls within this range, so even apps that only recently moved to the 16.3 line should confirm they are on 16.3.6 or later. However, the 16.3 line has no fixed release for the October 14 advisories, so the version to move to is 16.4.1 or later (see below).
Search commands to check your code
From here on is our editorial team's proposal. Running the following searches at the root of your repository narrows down the files you need to check (behavior confirmed against test files in our test environment).
# 1. next/og(または @vercel/og)を読み込んでいるファイル
grep -rlE "from ['\"](next/og|@vercel/og)['\"]" \
--include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' --include='*.mjs' \
--exclude-dir=node_modules --exclude-dir=.next .
# 2. 画像を生成するファイル規約(opengraph-image / twitter-image / icon / apple-icon)
find . \( -path ./node_modules -o -path ./.next \) -prune -o -type f \
\( -name 'opengraph-image.*' -o -name 'twitter-image.*' -o -name 'icon.*' -o -name 'apple-icon.*' \) -print
# 3. ランタイムを明示しているファイル
grep -rnE "runtime\s*[:=]\s*['\"](edge|experimental-edge|nodejs)['\"]" \
--include='*.ts' --include='*.tsx' --include='*.js' --include='*.jsx' \
--exclude-dir=node_modules --exclude-dir=.next .
Treat any file for which the third search did not return export const runtime = 'edge', or export const config = { runtime: 'edge' } for the Pages Router, as running on the Node.js version (we confirmed in the 16.3.6 build code that config.runtime is read for the Pages Router).

The diagram is our editorial team's arrangement of the advisory's conditions in the order you would check them. "External values" means things like params derived from the URL path, search parameters, and titles or names submitted by users. The advisory's example puts values into SVG elements, but because ImageResponse turns the whole JSX into SVG before rendering the image, our editorial team recommends treating values placed anywhere in the JSX the same way until you update. Even images that use only your own values may later gain a submission feature. If you are on an affected version, upgrading to 16.4.1 or later is more reliable than narrowing down the conditions (because 16.3.6 through 16.3.8 are covered by the October 14 advisories).
Windows: where it runs matters more than the code
For GHSA-p293-qw3h-jr36, the condition is the server's OS rather than how the code is written. The advisory says that Pages Router or App Router apps that do not use Cache Components could be exposed to RCE when the server runs on a machine using a Windows file system, and since there is no workaround, it asks you to update immediately. The fix commit is titled "Fix ISR misses with backslashes in segments when deployed on Windows," and it changes the code that saves the ISR cache to files.
What to check is the OS of the machine running the Next.js server in production. Setups running on Windows Server or Windows virtual machines are candidates. If a vendor operates it, have them answer in writing with the OS and Next.js version, and if the OS is unknown, assume you are affected and prioritize the update.
The fixed versions 15.5.24 and 16.3.3 were published to npm on August 25, 2026, before the advisory was published (September 8). If you updated at the end of August or later, this issue is resolved. We covered how to decide who updates within the scope of a maintenance contract in Abandoned React2Shell sites and reviewing maintenance contracts.
What npm audit shows and what it doesn't
In our test environment, we created a package.json with only next and react / react-dom (19.2.0) as dependencies, then ran npm audit --json after npm install --package-lock-only (October 1, 2026).
| next version | Next.js advisories reported by npm audit |
|---|---|
| 16.3.2 | 3: GHSA-p293 (Windows), GHSA-2xp9 (AVIF), GHSA-vcvr (next/og) |
| 16.3.5 | 1: GHSA-vcvr (next/og) |
| 16.3.6 / 16.3.8 | None (0 findings) |
| 15.5.23 | 2: GHSA-p293, GHSA-2xp9 (plus findings for the bundled postcss and sharp) |
| 15.5.27 | No advisories for Next.js itself. The finding for the bundled postcss remains |
npm audit judges by version alone, so conditions such as not running on Windows or not using next/og are not taken into account, and the warning remains until you update even if those conditions don't apply.
This table shows the results from October 1. As of October 16, the three advisories published on October 14 were not included in the GitHub Advisory Database. When we repeated the same procedure in our test environment (macOS, Node.js v22.19.0, npm 10.9.3), 16.3.8, 16.4.0, 16.4.1 and 16.4.2 all had zero findings, and 15.5.27 and 15.5.28 had only the findings for the bundled postcss. Even when npm audit reports zero findings, 16.3.8, 16.4.0 and 15.5.27 are affected versions.
Apps that depend directly on Satori or @vercel/og need a separate check. When we ran npm audit on a setup with satori@0.33.4 as a dependency, this Satori advisory was not shown (we could not open its text from our environment, so it is unread). On npm, satori 0.33.5, which includes the fix commit, and @vercel/og 1.0.3, which depends on it, were published on September 22. If you depend on them directly, check the versions yourself.
Note that even with 15.5.27, the finding for the bundled postcss remained, and npm audit pointed to the major update 16.3.8 (16.4.2 when we re-ran it on October 16). This article does not assess the impact of the postcss finding.
Common points of confusion when updating
- Which version to upgrade to (corrected October 16).The next/og fix starts at 16.3.6, but the 16.3 line has no fixed release for the three October 14 advisories. On the 16 line, upgrade to 16.4.1 or later (as of October 16, npm's
latestis 16.4.2); on the 15 line, upgrade to 15.5.28 or later. Moving from the 16.3 line crosses a minor version, so our editorial team suggests checking behavior in staging before releasing to production. The conditions of the three advisories are as follows.- GHSA-673q-mjm6-r5xr (CRITICAL, RCE): Occurs in an App Router app using Cache Components when a
use cachefunction returns multiple typed arrays. Affects 16.0.0 through 16.4.0. There is no workaround, and the advisory asks you to upgrade immediately even if you have no such function. - GHSA-2464-fhr4-w9xw (CRITICAL, RCE, CVE-2026-96889): A memory issue in an upstream library can lead to RCE when image optimization handles SVG (when running on glibc-based Linux). Affects 10.0.0 through 15.5.27 and the 16 line up to 16.4.0. The workaround is to make sure the sharp used by Next.js is 0.35.5 or later.
- GHSA-p3m5-59mp-jv5r (HIGH, DoS): Sending crafted requests to an App Router app with at least one Server Action exhausts the CPU and stalls processing in the same process. Affects 13.0.0 through 15.5.27 and 16.0.0 through 16.4.0. Apps that use the Pages Router or do not use Server Actions are not affected.
- GHSA-673q-mjm6-r5xr (CRITICAL, RCE): Occurs in an App Router app using Cache Components when a
- Don't work around it by switching to Edge. The Edge version is said to be unaffected, but the documentation marks
runtime = 'edge'as not recommended, and Cache Components assume the Node.js runtime. The workaround, as stated in the advisory, is "don't pass external values," not changing the runtime. - Don't rely on the version shown for bundled components. Unpacking and comparing 16.3.5 and 16.3.6 shows that the image generation files in
dist/compiled/@vercel/ogchanged, but the version ofpackage.jsonin the same location is 0.11.1 in both. Judge whether the fix is present by the version ofnextitself (npm ls next).
On October 1, 2026, we directly read GHSA-vcvr-r3jv-pc5j, GHSA-p293-qw3h-jr36 and GHSA-2xp9-vwfh-vxw4 in the GitHub Advisory Database (commit 3113af4), the fix commits and tags in the Next.js and Satori repositories, and the source of the Next.js documentation (runtime, ImageResponse, Edge Runtime, cacheComponents). npm publication dates come from
npm view, and we checked the diff between Next.js 16.3.5 and 16.3.6 by unpacking the packages.npm auditwas run in our test environment (Linux, Node.js v22.22.0) against a minimal setup with only the dependencies installed; we did not build an app, reproduce the vulnerabilities or test behavior on Windows. The Satori advisory GHSA-wx4j-mvgx-mqwp and the Next.js release notes page could not be opened from our environment and are unread. For the October 16 correction, we read the vercel/next.js advisories GHSA-673q-mjm6-r5xr, GHSA-2464-fhr4-w9xw and GHSA-p3m5-59mp-jv5r through the GitHub API, checked npm publication dates andlatestwithnpm view, and checked the findings for each version withnpm audit. We have not checked app behavior after upgrading to the 16.4 line.
For update planning for sites and apps built with Next.js, and how to approach checks with your vendors, contact GleamHub.
Sources
- GHSA-vcvr-r3jv-pc5j: Remote Code Execution in next/og ImageResponse — vercel/next.js
- GHSA-p293-qw3h-jr36: Unauthenticated Remote Code Execution on windows-hosted servers — vercel/next.js
- GHSA-2xp9-vwfh-vxw4: Remote Code Execution in Image Optimization API when AVIF files are used — GitHub Advisory Database
- GHSA-673q-mjm6-r5xr: Unauthenticated Remote Code Execution in
use cachefunctions returning typed arrays — vercel/next.js - GHSA-2464-fhr4-w9xw: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used — vercel/next.js
- GHSA-p3m5-59mp-jv5r: Denial of Service in App Router using Server Actions — vercel/next.js
- github/advisory-database (included JSON)
- Harden next/og SVG serialization — vercel/next.js commit 868fad3
- Fix ISR misses with backslashes in segments when deployed on Windows — vercel/next.js commit 968b9fc
- fix: Harden SVG serialization — vercel/satori commit 26a52af(0.33.5)
- runtime — Next.js Docs
- ImageResponse — Next.js Docs
- Edge Runtime Deprecated — Next.js Docs
- next — npm









