CVE-2024-34351

published 9 May 2024 · updated 2 Aug 2024

Next.js Server-Side Request Forgery in Server Actions

8.5HighCVSS 7.5EPSS 5%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 5%. No fixed version is recorded.

Next.js is a React framework that can provide building blocks to create web applications. A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions. If the `Host` header is modified, and the below conditions are also met, an attacker may be able to make requests that appear to be originating from the Next.js application server itself. The required conditions are 1) Next.js is running in a self-hosted manner; 2) the Next.js application makes use of Server Actions; and 3) the Server Action performs a redirect to a relative path which starts with a `/`. This vulnerability was fixed in Next.js `14.1.1`.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
vercel>=13.4.0 <14.1.1

Exploit evidence

2 public sources

Coverage

News and research mentioning this CVE

Research blogs·research

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-34351 severity on Zeptric[![CVE-2024-34351](https://zeptric.io/badge/cve/CVE-2024-34351.svg)](https://zeptric.io/cve/CVE-2024-34351)