CVE-2026-64645 Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname

High 8.3 Published Updated

Attackers can exploit Next.js rewrites to perform Server-Side Request Forgery or Open Redirects by controlling destination hostnames, requiring specific rewrite configurations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-64645?

CVE-2026-64645 is a high-severity server-side request forgery vulnerability in Vercel Next.js, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Next.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, a rewrites() or redirects() rule that builds its external destination hostname from request-controlled input can be pointed at an arbitrary hostname, regardless of the rule's hostname suffix. For a rewrite, Next.js proxies the request to that arbitrary host and serves the response from the application's origin, leading to Server-Side Request forgery. A redirects() rule configured this way is vulnerable to an Open Redirect. This issue has been fixed in versions 15.5.21 and 16.2.11.

Weakness: CWE-918, CWE-601

Which versions are affected by CVE-2026-64645?

4 open source packages ship an affected version, including next. It affects 1 product.

PackageAffectedFixed in
next npmFrom 12.0.015.5.21
next npmFrom 12.0.015.5.21
next npmFrom 16.0.016.2.11
next npmFrom 16.0.016.2.11

Products include Vercel Next.js.

How do I fix CVE-2026-64645?

Upgrade next to a fixed version for your release line: 15.5.21 or 16.2.11.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-64645 being exploited?

There is no known exploitation of CVE-2026-64645 in the wild and no public exploit code.

All Vercel Next.js vulnerabilities

Sources

Also known as CLEANSTART-2026-SY86267, CLEANSTART-2026-YT06391, CLSA-2026-1792195729, CLSA-2026-1792196879, CLSA-2026-1792206306, CLSA-2026-1792272247 and 13 more.

Is CVE-2026-64645 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free