The short answer
On August 25, 2026, Vercel released emergency updates for Next.js — v16.3.3 and v15.5.24 — addressing two critical-severity vulnerabilities that each enable unauthenticated remote code execution. The first, CVE-2026-75604, exploits a path traversal flaw in applications running on Windows servers that use both the Pages Router and App Router without Cache Components. The second stems from a memory-safety bug in libheif, the upstream library behind sharp's AVIF decoding, and can be triggered whenever Next.js optimizes an attacker-controlled image.
With 45 million weekly npm downloads, Next.js is the backbone of a large share of modern SSR and full-stack web products. If your app is self-hosted on any platform — cloud VMs, containers, on-prem — you need to patch manually. Teams on Vercel's managed hosting are already protected.
What Vercel patched on August 25
Vercel pre-announced the release a week in advance, giving teams a runway to plan maintenance windows. The final release landed ahead of schedule after a second critical-severity vulnerability — the AVIF image flaw — was identified in an upstream dependency in the days before the planned date. Both fixes shipped together in the August 25 emergency release.
The two active LTS tracks are the patch targets. Next.js 16.3.3 is the current Active LTS and Next.js 15.5.24 is the Maintenance LTS, covering the two most widely deployed version families. Teams on older, end-of-life branches do not receive fixes; the recommended path is to migrate to a supported line before patching.
Vercel coordinates security disclosures through its Open Source Bug Bounty program on HackerOne. Both advisories were privately reported and fixed before public disclosure, which is why no proof-of-concept exploit code existed at the time of the announcement.
CVE-2026-75604: Windows path traversal RCE
The mechanics of CVE-2026-75604 are rooted in how Next.js handles route resolution when both the Pages Router and App Router are active. In that hybrid configuration — increasingly common as teams migrate from Pages Router incrementally — a path traversal bug in the Windows filesystem layer can be triggered without authentication. An attacker who can send a crafted HTTP request to the server can achieve arbitrary code execution under the process's identity.
The important scope restriction is the filesystem: this vulnerability is Windows-only. The Next.js advisory is explicit: "Linux and macOS are not affected by this issue." Many self-hosted Next.js deployments run on Linux containers, which narrows the real-world exposure. But teams that run the Next.js server process on Windows — whether on a VM, a Windows-based cloud instance, or a hybrid development pipeline that also has production surface — should treat this as a top-priority patch.
Critically, there is no known workaround for Windows-hosted applications. Disabling either router is rarely an option in a production hybrid setup. The patch is the only complete mitigation. Fastly has published a virtual patch for its WAF customers, and edge-level rules can reduce exposure in transit, but neither replaces upgrading the framework. Teams relying on application-layer security audits should note that static analysis will not catch a runtime path traversal of this kind — it requires an upgrade.
AVIF image optimization flaw
The second vulnerability (GHSA-2xp9-vwfh-vxw4) affects a different part of Next.js: the Image Optimization API. When a Next.js server processes an AVIF image using the sharp library, it relies on libheif for decoding. The flaw is a memory-safety bug in libheif itself — if an attacker can cause the server to decode a maliciously crafted AVIF file, they can achieve unauthenticated remote code execution on the host.
The attack surface for this flaw is broader than CVE-2026-75604. It is not limited to Windows, and any Next.js deployment that processes user-controlled images — whether from uploads, third-party URLs passed to the <Image> component, or an unvalidated remotePatterns configuration — is potentially in scope. The remotePatterns allowlist in next.config.js does constrain which remote URLs can be optimized, but a misconfigured or overly permissive allowlist could leave exposure.
Because the bug is in an upstream library rather than Next.js itself, the Vercel team chose a conservative mitigation: the patched versions of Next.js disable AVIF image optimization entirely until the fix propagates through the libheif release chain. AVIF images will still be served — they will simply not go through the optimization pipeline. Teams that depend on AVIF optimization for performance should plan to re-enable it once a patched libheif version is available and integrated into sharp.
Who is protected automatically?
Teams deploying on Vercel's managed platform do not need to take action — Vercel confirmed in its changelog that the platform is protected from both vulnerabilities. Vercel's infrastructure-level mitigations apply automatically to all hosted applications.
For everyone else, the answer is more nuanced. Self-hosted deployments on any platform — AWS, GCP, Azure, on-premises, Docker containers, bare-metal VMs — require a manual upgrade. The version of Next.js your application runs is determined by what is installed in node_modules, not by the hosting provider. If your CI pipeline does not pin and verify the framework version on every build, this is a good moment to add that check.
Edge runtimes and serverless functions that do not run a full Node.js Next.js server are not affected by CVE-2026-75604, because the path traversal occurs in the server process. The AVIF flaw is similarly confined to the Image Optimization API — if your deployment handles image optimization externally (via a CDN or a separate service), your surface area is smaller, but upgrading remains the right call.
What it means for US & EU software teams
For teams running Next.js in production, the primary question is operational: how long does it take to go from "there is a critical patch" to "all affected services are running the fixed version"? If your answer is measured in hours, this week looks manageable. If it is measured in weeks, that gap is the real risk — not just from this CVE, but from the next one.
The Windows-specific scope of CVE-2026-75604 is worth checking against your actual deployment. Many teams assume Linux containers, but mixed environments — where Next.js runs in a Node.js process on a Windows host for legacy reasons, or where a development-stage system has production-adjacent exposure — can catch teams off guard. An inventory of where Next.js actually runs in your environment is a useful deliverable from this incident regardless of whether you are immediately affected.
For teams in regulated industries, these disclosures also have a compliance angle. Frameworks like SOC 2, ISO 27001 and the EU's NIS2 directive expect a documented vulnerability-management process: how you monitor for advisories, how you triage severity, and what your patching SLA looks like. A critical RCE in a widely adopted open-source framework is a concrete test case. Demonstrating that you identified, triaged and patched within a defined SLA — and that you have logs to prove it — is exactly what an assessor wants to see.
How to patch this week
The path to a patched deployment is straightforward, but the details matter.
- Check your Next.js version. Run
npx next --versionor inspectpackage.jsonacross all your services. If you use Docker, check the base image build logs or inspect the container:docker exec <container> npx next --version. - Upgrade the framework. For the 15.x line:
npm install next@15.5.24. For the 16.x line:npm install next@16.3.3. Commit the updatedpackage-lock.jsonso CI enforces the version. - Rebuild container images. If Next.js is bundled into a Docker image, a dependency bump is not enough — rebuild the image from scratch so the new version is baked in. A running container will not self-update.
- Verify AVIF behaviour. After upgrading, confirm that your image optimization pipeline behaves as expected. AVIF files will be served but not optimized in the patched versions; if you serve AVIF heavily, check your CDN hit rates and review whether WebP coverage is sufficient while the upstream fix propagates.
- Audit your
remotePatterns. While you are in the configuration, tighten any overly broad allowlist entries. The AVIF flaw requires the server to process a malicious image — a strictremotePatternsconfiguration limits which external image URLs can reach the optimizer. - Update your dependency scanning. Add Next.js version verification to your CI pipeline so that any future regression — a dependency update that downgrades the framework — is caught before it reaches production.
Frequently asked questions
Which Next.js versions are affected by the August 2026 critical RCEs?
CVE-2026-75604 (Windows path traversal RCE) affects Next.js 13.4 through 15.5.23 and 16.0 through 16.3.2. The AVIF image optimization flaw (GHSA-2xp9-vwfh-vxw4) affects all Next.js versions that enable AVIF optimization via the sharp library. Both are fixed in v15.5.24 (Maintenance LTS) and v16.3.3 (Active LTS). Teams on older end-of-life lines should migrate to a supported release.
Does CVE-2026-75604 affect Linux or macOS servers?
No. CVE-2026-75604 is a Windows-specific path traversal vulnerability. The Next.js security advisory explicitly states that Linux and macOS are not affected by this issue. However, there is no known workaround for Windows-hosted applications — the only fix is upgrading to v15.5.24 or v16.3.3.
Are Next.js apps hosted on Vercel automatically protected?
Yes. Vercel's changelog confirmed that applications deployed on Vercel's managed platform are protected from both vulnerabilities. Self-hosted Next.js applications — running on VMs, containers, cloud-run services, or on-premises servers — must upgrade manually. Vercel's Managed Firewall also provides a virtual patch via edge rule updates, but a code upgrade remains the recommended permanent fix.
What is the risk of the AVIF image optimization flaw?
The AVIF vulnerability (GHSA-2xp9-vwfh-vxw4) stems from a memory-safety bug in libheif, the library underlying sharp, which Next.js uses for image optimization. An attacker who can cause the server to process a crafted AVIF image — for example via a user-uploaded file or an attacker-controlled URL passed to the Next.js Image component — can achieve unauthenticated remote code execution. The patched versions disable AVIF optimization as a temporary mitigation until the upstream libheif fix is propagated.
Sources
Vercel / Next.js — August 2026 Security Release (official advisory, primary source)
Vercel Changelog — Next.js August 2026 security vulnerabilities (platform protection confirmation)
SecurityOnline — 45M Weekly Downloads at Risk: Next.js CVE-2026-75604 (CVSS 9.0) Enables Unauthenticated RCE
Endor Labs — Critical RCE Vulnerabilities in React and Next.js