CVE-2024-34351 json
Next.js Server-Side Request Forgery in Server Actions
published 2024-05-09 2 y ago modified 2026-09-10 59 d ago also EUVD-2024-1607 , GHSA-fr5h-rqp8-mj6g
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 5.5%
- EPSS 5.5% chance of exploitation in 30 days, percentile 92%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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`.
Patch / fix
- npm next 14.1.1
- vercel next.js 14.1.1
- github.com/vercel/next.js@8f7a6ca commit
- github.com/vercel/next.js#62561 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-34351 updated cvss 7.5
next: Next.js Server-Side Request Forgery in Server Actions
-
Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/disk-image-cuda-rhel9affected: workaround, no fix available
-
Red Hat Streams for Apache Kafka 3.2.0fixed: vendor fix RHSA-2026:13571
-
Red Hat Trusted Artifact Signer rhtas/rekor-search-ui-rhel9 Red Hat streams for Apache Kafka 2 nextnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
5.45% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Next.js - Server Side Request Forgery (SSRF) nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | next | >=13.4.0, <14.1.1 |
14.1.1 |
Affected products
- vercel next.js
Classification
- Weakness
-
- CWE-918 Server-Side Request Forgery
- Technology feeds
References
-
github.com
/vercel/next.js/pull/62561
web, issue-tracking, patch
-
github.com
/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085
web, patch
-
github.com
/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-34351
advisory
-
github.com
/vercel/next.js
package
Sources
- CVE List CVE-2024-34351
- GitHub Advisory GHSA-fr5h-rqp8-mj6g
- NVD CVE-2024-34351
- Maintainer advisory GHSA-fr5h-rqp8-mj6g
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of vercel/next.js published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.