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

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2026-07-22T23:02:23.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-p9j2-gv94-2wf4
- Weaknesses: CWE-601, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vercel next.js: >= 12.0.0 < 15.5.21; >= 16.0.0, < 16.2.11; from 12.0.0 before 15.5.21; from 16.0.0 before 16.2.11
- next (npm): from 12.0.0 before 15.5.21; from 16.0.0 before 16.2.11

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4> (mitigation, vendor-advisory, web)
- <https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9> (patch, web)
- <https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599> (patch, web)
- <https://github.com/vercel/next.js/releases/tag/v15.5.21> (product, release-notes, web)
- <https://github.com/vercel/next.js/releases/tag/v16.2.11> (product, release-notes, web)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2026-64645](https://www.cve.org/CVERecord?id=CVE-2026-64645), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-p9j2-gv94-2wf4](https://github.com/advisories/GHSA-p9j2-gv94-2wf4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-64645](https://nvd.nist.gov/vuln/detail/CVE-2026-64645), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-64645 · Whole record: https://cve.day/CVE-2026-64645.json · Rebuilt by cve.day 2026-11-25T22:59:30.225Z
