↓ Skip to main content
  1. Articles/

Next.js October 2026 Security Update: Executive Summary

Azriel Fidzlie, S.Kom
Author
Azriel Fidzlie, S.Kom
Always Learning New Things
Table of Contents

On October 14, 2026, the Next.js team (Vercel) released an out-of-band security patch addressing two critical Remote Code Execution (RCE) vulnerabilities and one high-severity Denial-of-Service (DoS) vulnerability. This update is available in Next.js v16.4.1 (Active LTS) and 15.5.28 (Maintenance LTS). Two RCEs with a CVSS score of 9.5 allow unauthenticated code execution in the App Router when the use cache function returns typed arrays, and in the image optimization API when processing SVG files (CVE-2026-96889). The DoS vulnerability (CVSS 8.2) affects the App Router when using Server Actions. None of these issues have a workaround other than upgrading Next.js immediately. This article outlines the technical details of the vulnerabilities, affected versions, practical impact, mitigation steps (upgrade and configuration), developer guidance, Next.js security best practices, and short- and long-term risk analysis. We cite official Next.js sources, GHSA advisories, and community security analyses to support each point.

Vulnerability Details and Affected Versions
#

  • RCE in use cache (Critical). This affects Next.js applications using the App Router with Cache Components. The use cache function that returns multiple typed arrays can be exploited for unauthenticated remote code execution. Affected versions: Next.js 16.0.0 through 16.4.0. Fixed in 16.4.1. There is no alternative solution other than upgrading. Vercel strongly recommends updating immediately even if your app does not use a similar feature.

  • RCE in Image Optimization (SVG) (Critical, CVE-2026-96889). This is a memory bug in the sharp library (librsvg) used by the Image Optimization API. When Next.js runs on Linux-based glibc systems, processing an SVG file can trigger unauthenticated code execution. Affected versions: Next.js 10.0.0 through 15.5.27 and 16.0.0 through 16.4.0. Fixed in 15.5.28 and 16.4.1. Temporary mitigation: ensure sharp is at version ≥ 0.35.5 (which includes the librsvg fix), or block unnecessary SVG processing.

  • DoS in Server Actions (High). This affects the App Router when using Server Actions. A specially crafted request can cause excessive CPU usage (an infinite loop) that blocks other requests, leading to a DoS on the same Node.js process. Affected versions: Next.js 13.0.0 through 15.5.27 and 16.0.0 through 16.4.0. Fixed in 15.5.28 and 16.4.1. Applications using only the Pages Router or without Server Actions are not affected. There is no workaround other than upgrading immediately.

Vulnerability / CVEAffected VersionsPatched VersionSeverityMitigation / Workaround
RCE: use cache returning typed arraysNext.js
≥16.0.0 ≤16.4.0
16.4.1Critical (9.5)Upgrade immediately (no workaround)
RCE: Image Optimization (SVG)
CVE-2026-96889
Next.js
≥10.0.0 ≤15.5.27;
≥16.0.0 ≤16.4.0
15.5.28, 16.4.1Critical (9.5)Ensure sharp ≥0.35.5 or upgrade
DoS: Server ActionsNext.js
≥13.0.0 ≤15.5.27;
≥16.0.0 ≤16.4.0
15.5.28, 16.4.1High (8.2)Upgrade immediately (no workaround)

The table above reflects the vulnerable Next.js versions and the latest patched versions that remediate them. Severity ratings (CVSS) are taken from the GHSA advisories. For more technical detail, the GitHub advisories and community reports document the underlying bug mechanisms.

Practical Impact on Applications
#

These RCE vulnerabilities are highly dangerous because they allow attackers to execute malicious code on the Next.js server without authentication. For example, the RCE in use cache can be triggered by a crafted HTTP request that causes the cache function to return typed arrays. If exploited, an attacker could steal data, alter content, or install backdoors on a production server. Meanwhile, the SVG RCE creates an attack vector through user-uploaded image files, such as via the image API. For the Server Actions DoS, the consequence is a CPU-exhausting flood that can cripple the service until the process is restarted. According to official Next.js sources, applications using the Pages Router (without server actions) are not affected, so developers can reduce exposure by not using the App Router or disabling Server Actions when they are not needed. However, the safest path is to update Next.js to the patched version, because there is no effective mitigation beyond that.

Step-by-Step Upgrade and Mitigation Guide
#

The following are the key steps developers should take to close these vulnerabilities:

  1. Identify the current Next.js version. Run npm list next or check package.json.
  2. If the version is within the affected range, upgrade immediately to the patched release. Example commands (using npm or Yarn):
# For the Next.js 15.x branch (Maintenance LTS):
npm install next@15.5.28

# For the Next.js 16.x branch (Active LTS):
npm install next@16.4.1

# (Alternative using Yarn)
yarn add next@16.4.1
  1. Ensure the sharp version is safe (only for Linux-based glibc systems running the image API). If you use Sharp explicitly or as a transitive dependency, upgrade to the latest version ≥0.35.5:
npm install sharp@0.35.5
# or add it to package.json / use Yarn resolutions:
yarn add sharp@0.35.5

This ensures the librsvg library inside sharp has been patched.

  1. Run regression and application functionality checks. Rebuild the Next.js app and test scenarios involving cache, image optimization, or Server Actions to make sure there are no errors. Confirm that affected API calls and module imports still work correctly.

  2. Deploy the updated version to production. Monitor logs and use security tooling (for example, dependency audits) to ensure the vulnerability has been closed.

After upgrading, continue monitoring official Next.js security notifications (blog, GitHub Security) for upcoming patches. Next.js recommends that all LTS users apply patch releases promptly to maintain security.

References
#

  • Vercel/Next.js. Next.js Security Update for Upstream Vulnerabilities (October 14, 2026).
  • Vercel/Next.js. Upcoming Next.js Security Update for Upstream Vulnerabilities (October 8, 2026).
  • Vercel/Next.js GitHub. Security Advisory GHSA-673q-mjm6-r5xr: Unauthenticated RCE in use cache (October 14, 2026).
  • Vercel/Next.js GitHub. Security Advisory GHSA-2464-fhr4-w9xw: Unauthenticated RCE in Image Optimization API (SVG) (October 14, 2026).
  • Vercel/Next.js GitHub. Security Advisory GHSA-p3m5-59mp-jv5r: DoS in App Router using Server Actions (October 14, 2026).
  • Cloud Security Alliance. Research Note: Next.js Out-of-Band Patch: Critical RCE in use cache and librsvg (October 16, 2026).
  • Brandefense Research Team. Next.js and Node.js Security Updates, October 2026: What to Patch First (October 21, 2026).

Related

Critical Threats in the Node.js Ecosystem: Breaking Down the 'Node2Shell' RCE Vulnerability in the Brotli Module (CVE-2026-111497)

The web application development ecosystem has recently been shaken by the discovery of a critical vulnerability in Node.js. On October 21, 2026, the Node.js project released an emergency security update to patch 10 security flaws, with one vulnerability drawing the most attention: CVE-2026-111497.

Critical Threats Behind PHP: Dissecting Dangerous RCE Vulnerabilities (CVE-2026-109618 & CVE-2026-109619)

Recently, the web development ecosystem was shaken by the disclosure of two critical vulnerabilities with a CVSS score of 9.2 in the core of PHP. These vulnerabilities allow attackers to carry out full Remote Code Execution (RCE) server takeover and execute malicious code even without requiring any authentication.