Skip to main content
Public proof of conceptFix available

CVE-2024-34351

Next.js Server-Side Request Forgery in Server Actions

A public proof of concept exists; no exploitation attested.

  • Published2024-05-14
  • Fixed in14.1.1
  • WeaknessCWE-918

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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

Timeline

dates in UTC
  1. 2024-05-1415:38CVE publishedNVD

Versions per branch

NVD · CISA-ADP · OSV
Next.js
BranchAffectedFixed in
14.1≥ 13.4.0, < 14.1.114.1.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • vercel next.js
    Affected
    • = >= 13.4.0, < 14.1.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-05-09

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.6
  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.2
  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.3
  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.4
  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.5
  • @rootio/nextRoot:npmall versions · fixed in 13.4.19-root.io.7
  • @rootio/nextRoot:npmall versions · fixed in 13.5.11-root.io.8
  • @rootio/nextRoot:npmall versions · fixed in 13.5.11-root.io.9

69 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-34351 Red Hat Product Security1 product fixed · 3 known affected

    next: Next.js Server-Side Request Forgery in Server Actions

    rhelai3/bootc-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3 · rhelai3/bootc-rocm-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3 · rhelai3/disk-image-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3

  • RHSA-2026:13571 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Streams for Apache Kafka 3.2.0 release and security update

Full record on NVD

Fix

  1. Update Next.js to 14.1.1
  2. Vendor fix Red Hat Product Security RHSA-2026:13571 · 1 productBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  3. Workaround from the vendor Red Hat Product Security RHSA-2026:13571 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  4. No fix available, says the vendor Red Hat Product Security CVE-2024-34351 · 3 productsAffected

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2024-05-14
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-fr5h-rqp8-mj6g

Frequently asked questions

What is CVE-2024-34351?

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

Is CVE-2024-34351 actively exploited?

Active exploitation of CVE-2024-34351 has not been confirmed. Its EPSS score was 5.5% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-34351?

CVE-2024-34351 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running Next.js? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record