Summary
CVE-2026-75604 is a critical path traversal vulnerability (CWE-22) in Next.js that affects applications hosted on Windows filesystems. Next.js does not consistently escape backslashes in route segments before constructing incremental-cache paths, which can let an unauthenticated network attacker escape the intended cache directory, access sensitive build data such as encryption keys, and ultimately achieve remote code execution.
Technical details
- Root cause: backslashes in route segments are not consistently escaped before being used to build incremental-cache file paths, enabling path traversal on Windows filesystems.
- Trigger conditions: the affected server must run on Windows, use the Pages Router and App Router without Cache Components enabled, use the default filesystem cache, and expose a dynamic ISR route (Pages Router), a dynamic cached route (App Router), and a closure-bound Server Action.
- Attack vector: network, no authentication or user interaction required; the attacker crafts requests that manipulate the filesystem cache path and forges a Server Action invocation to reach a code-execution primitive, exfiltrating command output via an out-of-band callback.
- Impact: disclosure of sensitive build artifacts (including encryption keys) and remote code execution on the host, with high impact to confidentiality, integrity, and availability.
Affected software
- Next.js 13.4.0 through 15.5.23
- Next.js 16.0.0 through 16.3.2
- Only deployments running on Windows-hosted servers are exploitable for RCE
Severity
- CVSS v3.1 Base Score: 9.0 (Critical)
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade to Next.js 15.5.24 or 16.3.3, which contain the fix.
- If no patch can be applied immediately: there is no known workaround for affected Windows-hosted applications per the vendor advisory; prioritize migrating or isolating Windows-hosted Next.js deployments until patched, and restrict network access to these hosts where possible.

