Two Flaws, One Urgent Message: Patch Your Next.js Now
If you’re running Next.js in production, this week’s security advisory from Vercel should grab your full attention. The company has shipped patches for two critical-severity vulnerabilities, and both allow unauthenticated remote code execution (RCE). That’s the worst kind of bug — no login required, no user interaction needed.
The first flaw lives in how Next.js parses AVIF image files. The second is a path traversal issue that only bites servers running on a Windows filesystem. Together, they paint a picture of an attack surface that’s wider than many developers realize.
Let’s break down what’s actually broken, who’s affected, and what you need to do before the weekend.
CVE-2026-75604: The Windows Path Traversal Flaw
Tracked as CVE-2026-75604, this vulnerability affects Next.js deployments on Windows servers. The bug is a classic path traversal — an attacker can craft a request that escapes the intended directory structure and reads or writes files outside the application root.
But it gets worse. In combination with other server-side weaknesses, this traversal can escalate to full remote code execution. The advisory notes that the impact is “critical” because the attack requires no authentication. If your Next.js app is hosted on a Windows machine — whether bare metal, a VM, or a Windows-based container — you’re in the blast radius.
Why Windows-Specific Bugs Slip Through
Path traversal issues often appear when developers assume a POSIX-style filesystem. Windows uses backslashes, drive letters, and different path normalization rules. A filter that blocks ../ on Linux might miss .. or encoded variations on Windows. It’s a subtle mismatch, and it’s exactly the kind of edge case that escapes code review.
The AVIF Image Parsing Vulnerability: RCE via a Single Image
The second flaw is arguably more alarming because it’s platform-independent. Next.js’s image optimization pipeline — the built-in next/image component — fails to properly validate certain AVIF files. A specially crafted image can trigger memory corruption or a logic error during parsing, leading to unauthenticated RCE.
Think about the attack scenario: an attacker uploads a malicious AVIF to any endpoint that processes images, or lures a user to a page that renders one. The server parses the file, and boom — the attacker gains code execution on the host. No credentials, no special privileges, just a carefully constructed binary file.
This is a reminder that image parsers are a historically dangerous attack surface. From JPEG to PNG to WebP, we’ve seen critical bugs in every major format. AVIF is newer, but it’s not immune.
Which Versions Are Affected — and Which Are Fixed
Vercel has confirmed that the following versions are vulnerable:
- Next.js 15.x — all versions prior to 15.4.6
- Next.js 14.x — all versions prior to 14.2.34
- Next.js 13.x — all versions prior to 13.5.11
The patched releases are 15.4.6, 14.2.34, and 13.5.11. If you’re on any version older than these, you’re exposed. There are no workarounds for either vulnerability — the only safe move is to upgrade.
What to Do Right Now
The fix is straightforward, but it requires action. Here’s your checklist:
- Check your Next.js version — run
npm list next or check your package.json.
- Upgrade immediately — use
npm install next@latest or pin to the specific patched version for your major release.
- Rebuild and redeploy — a package update isn’t enough; you need to redeploy your application to ensure the new binary is live.
- Review your image handling — if you use
next/image with AVIF support, audit your upload endpoints for any suspicious files.
- Monitor for exploitation — check your server logs for unusual image requests or path traversal patterns.
For teams managing multiple Next.js applications, this is also a good moment to audit your dependency tree. Transitive dependencies can pull in vulnerable versions without you noticing.
The Bigger Picture: Why Critical RCEs Keep Happening
Two critical RCEs in a single framework release might feel like a lot, but it’s part of a broader trend. As web frameworks add more built-in features — image optimization, server-side rendering, API routes — the attack surface grows. Each new feature is a new place for bugs to hide.
Next.js has been a dominant force in the React ecosystem for years, powering everything from startups to Fortune 500 sites. That popularity makes it a juicy target for attackers. The good news is that Vercel has a solid track record of responsible disclosure and rapid patching. The bad news is that patching only helps if you actually apply it.
If you’re on a managed hosting platform like Vercel itself, you may already be protected — the platform often applies patches automatically. But if you self-host on Node.js, whether on AWS, Azure, or your own infrastructure, the responsibility falls entirely on you.
Don’t Wait for the Exploit
Security advisories like this one are a race against time. The patches are public, which means exploit researchers and attackers alike now know exactly where to look. History shows that critical RCEs get weaponized within days, not weeks.
So here’s the bottom line: upgrade your Next.js deployment today. It’s a few minutes of work that could save you from a full server compromise. And while you’re at it, take a hard look at your image processing pipeline — it’s clearly a target.
For ongoing security updates on Next.js and other web frameworks, keep an eye on Vercel security advisories and the official Next.js changelog. Staying informed is half the battle.