Server-Side Request Forgery (SSRF) in Next.js - CVE-2026-64645
Published: July 22, 2026
Next.js
Detailed vulnerability description
The vulnerability allows a remote attacker to perform server-side request forgery.
The vulnerability exists due to improper neutralization of user-controlled input in rewrites() and redirects() destination hostname handling when constructing an external destination hostname from request-controlled input. A remote attacker can send a specially crafted request to perform server-side request forgery.
For rewrite rules, the application proxies the request to the attacker-selected host and serves the response from the application's origin.