Skip to main content

Server-Side Request Forgery (SSRF) in next

CVE-2026-64645

  • next
Severity High
Score 8.3/10

Summary

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. Affected versions are from 12.0.0 prior to 15.5.21 and from 16.0.0 prior to 16.2.11.

  • LOW
  • NETWORK
  • NONE
  • NONE

CWE-918 - Server-Side Request Forgery (SSRF)

Server-side request forgery (SSRF) is a weakness that allows an attacker to send an arbitrary request, making it appear that the request was sent by the server. This request may bypass a firewall that would normally prevent direct access to the URL. The impact of this vulnerability can vary from unauthorized access to files and sensitive information to remote code execution.

Advisory Timeline

  • Published