Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-64645 – SSRF / Open Redirect – Next.js 12.0.0–15.5.20 and 16.0.0–16.2.10

Be the first to know when new zero-days emerge:

Summary

CVE-2026-64645 is a Server-Side Request Forgery (SSRF) and Open Redirect vulnerability in Next.js, the widely deployed React full-stack web framework maintained by Vercel. It affects versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, and carries a CVSS 4.0 score of 8.3 (High). When a rewrites() or redirects() configuration rule dynamically constructs an external destination hostname from attacker-controlled request input, the intended hostname suffix can be bypassed — enabling the Next.js server to be forced to proxy requests to any arbitrary host.

Technical details

  • Root cause: Next.js interpolates user-controlled dynamic path segments (e.g., regex capture groups) directly into the destination URL of rewrites() and redirects() rules without validating the resulting hostname. This allows attacker-supplied values containing dots to escape the intended hostname suffix.
  • Exploit mechanism: The attack leverages DNS treatment of a trailing dot as a fully-qualified domain name (FQDN). For example, a rule such as destination: 'https://:tenant.api.example.com' can be exploited by supplying the tenant value attacker.com. — DNS resolves attacker.com. (the FQDN root) rather than the intended attacker.com..api.example.com, causing the Next.js server to contact the attacker-controlled host instead.
  • Attack vector: Network-accessible, no authentication required, no user interaction needed.
  • Prerequisites: The application must use rewrites() or redirects() rules that build destination hostnames from request-controlled input (e.g., URL path parameters or query parameters); this is not a default Next.js configuration.
  • Impact (rewrites): Next.js proxies the request to the arbitrary host and serves the response from the application’s origin — enabling full Server-Side Request Forgery. Attackers can probe internal network services, reach cloud metadata endpoints (e.g., AWS Instance Metadata Service at 169.254.169.254), and exfiltrate sensitive data.
  • Impact (redirects): The user’s browser is redirected to an attacker-controlled domain — enabling Open Redirect attacks.

Affected software

  • Next.js 12.0.0 through 15.5.20 (inclusive)
  • Next.js 16.0.0 through 16.2.10 (inclusive)

Severity

CVSS 4.0 Base Score: 8.3 (High)
Vector: 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

Mitigation and recommended actions

  • Immediate — apply vendor patches:
    • Upgrade to Next.js 15.5.21 (Maintenance LTS): npm install [email protected]
    • Upgrade to Next.js 16.2.11 (Active LTS): npm install [email protected]
    • Fixes are also included in Next.js 16.3 canary (v16.3.0-canary.92) and preview (v16.3.0-preview.7) releases.
  • If immediate patching is not feasible — harden rewrite/redirect configurations:
    • Restrict dynamic destination segments to hostname-safe characters only (alphanumeric and hyphens) using strict regex constraints, e.g.: value: '(?<tenant>[a-z0-9-]+)'. This prevents dot characters from being injected into the destination hostname.
    • Audit all rewrites() and redirects() rules in next.config.js for dynamic segments sourced from request input.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge