CVE-2026-64645
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-07-27
- Last modified
- 2026-10-24
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.8 %
higher than 52 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Vercel | Next.js | ≥ 12.0.0, < 15.5.21 | Affected |
| Vercel | Next.js | ≥ 16.0.0, < 16.2.11 | Affected |
Weakness type
-
CWE-601: URL Redirection to Untrusted Site
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
-
CWE-918: Server-Side Request Forgery
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
References
- https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9
- https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599
- https://github.com/vercel/next.js/releases/tag/v15.5.21
- https://github.com/vercel/next.js/releases/tag/v16.2.11
- https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4
Related at Berigo
Articles
-
Vercel confirms breach following compromised third-party integration
Same product
2026-04-19
Attackers used a compromised AI tool connected through Google Workspace OAuth to gain limited access to Vercel's internal systems.
-
The RondoDox botnet is exploiting a Next.js vulnerability
Same product
2025-12-29
CloudSEK describes a nine-month campaign now exploiting CVE-2025-55182 in Next.js to deploy payloads and cryptominers on vulnerable servers.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.