CVE-2024-34351
Next.js Server-Side Request Forgery in Server Actions
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
Next.js Server-Side Request Forgery in Server Actions
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.
- Record
CVE-2024-34351- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
EUVDEUVD-2024-1607
7.5
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.
- Record
EUVD-2024-1607- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fr5h-rqp8-mj6g
7.5
Next.js Server-Side Request Forgery in Server Actions
Impact
A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions by security researchers at Assetnote. 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.
Prerequisites
- Next.js (
<14.1.1) is running in a self-hosted* manner. - The Next.js application makes use of Server Actions.
- The Server Action performs a redirect to a relative path which starts with a
/.
* Many hosting providers (including Vercel) route requests based on the Host header, so we do not believe that this vulnerability affects any Next.js applications where routing is done in this manner.
Patches
This vulnerability was patched in #62561 and fixed in Next.js 14.1.1.
Workarounds
There are no official workarounds for this vulnerability. We recommend upgrading to Next.js 14.1.1.
Credit
Vercel and the Next.js team thank Assetnote for responsibly disclosing this issue to us, and for working with us to verify the fix. Thanks to:
Adam Kues - Assetnote Shubham Shah - Assetnote
- Record
GHSA-fr5h-rqp8-mj6g- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2024-34351- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSV
7.5
Next.js Server-Side Request Forgery in Server Actions
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.
- Record
CVE-2024-34351- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVGHSA-fr5h-rqp8-mj6g
7.5
Next.js Server-Side Request Forgery in Server Actions
Impact
A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions by security researchers at Assetnote. 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.
Prerequisites
- Next.js (
<14.1.1) is running in a self-hosted* manner. - The Next.js application makes use of Server Actions.
- The Server Action performs a redirect to a relative path which starts with a
/.
* Many hosting providers (including Vercel) route requests based on the Host header, so we do not believe that this vulnerability affects any Next.js applications where routing is done in this manner.
Patches
This vulnerability was patched in #62561 and fixed in Next.js 14.1.1.
Workarounds
There are no official workarounds for this vulnerability. We recommend upgrading to Next.js 14.1.1.
Credit
Vercel and the Next.js team thank Assetnote for responsibly disclosing this issue to us, and for working with us to verify the fix. Thanks to:
Adam Kues - Assetnote Shubham Shah - Assetnote
- Record
GHSA-fr5h-rqp8-mj6g- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2024-34351 No score
CVE-2024-34351 in next - Patched by Root
Root has patched CVE-2024-34351 in the next package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2024-34351- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nextnpm |
13.4.0 up to 14.1.1 | 14.1.1 |
nextRoot:npm |
before 13.4.19-aikido.6 | 13.4.19-aikido.613.4.19-aikido.714.0.4-aikido.614.0.4-aikido.913.4.19-aikido.214.1.0-aikido.413.4.19-aikido.314.0.4-aikido.514.0.4-aikido.714.1.0-aikido.714.1.0-aikido.814.0.3-aikido.314.0.0-aikido.714.0.4-aikido.414.0.3-aikido.614.0.0-aikido.513.5.4-aikido.514.0.3-aikido.414.0.0-aikido.313.5.4-aikido.214.0.3-aikido.513.5.4-aikido.614.0.0-aikido.613.4.19-aikido.413.5.6-aikido.513.5.6-aikido.613.5.11-aikido.814.0.4-aikido.814.1.0-aikido.514.0.0-aikido.414.1.0-aikido.313.5.4-aikido.313.4.19-aikido.513.5.4-aikido.413.5.11-aikido.914.1.0-aikido.613.5.6-aikido.7 |
@rootio/nextRoot:npm |
before 13.4.19-root.io.6 | 13.4.19-root.io.613.4.19-root.io.714.0.4-root.io.614.0.4-root.io.913.4.19-root.io.214.1.0-root.io.414.0.4-root.io.513.4.19-root.io.314.0.4-root.io.714.1.0-root.io.714.1.0-root.io.814.0.3-root.io.314.0.0-root.io.714.0.4-root.io.414.0.3-root.io.614.0.0-root.io.513.5.4-root.io.514.0.3-root.io.414.0.0-root.io.313.5.4-root.io.214.0.3-root.io.513.5.4-root.io.614.0.0-root.io.613.4.19-root.io.413.5.6-root.io.513.5.6-root.io.613.5.11-root.io.814.0.4-root.io.814.1.0-root.io.514.0.0-root.io.414.1.0-root.io.313.5.4-root.io.313.4.19-root.io.513.5.4-root.io.413.5.11-root.io.914.1.0-root.io.613.5.6-root.io.7 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Nuclei | Next.js - Server Side Request Forgery (SSRF) | |
| PoC in GitHub | God4n/nextjs-CVE-2024-34351-_exploit | 2024-08-27 |
| PoC in GitHub | Jinlei-Chen-UWO/cve-2024-34351-demo | 2026-04-12 |
| PoC in GitHub | Voorivex/CVE-2024-34351 | 2024-05-12 |
| PoC in GitHub | avergnaud/Next.js_exploit_CVE-2024-34351 | 2024-06-11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-34351 is a high vulnerability (CVSS 7.5) in Vercel Next.js, published May 9, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 5.45%, the 92nd percentile. Fixed in next 14.1.1.
References
github.com/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g
github.com/vercel/next.js/pull/62561
github.com/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085
nvd.nist.gov/vuln/detail/CVE-2024-34351
github.com/advisories/GHSA-fr5h-rqp8-mj6g
github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34351.json
github.com/vercel/next.js