# CVE-2024-34351: Next.js Server-Side Request Forgery in Server Actions

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.45%, higher than 92% of CVEs (2026-12-01)
- Published: 2024-05-09T16:14:16.236Z
- Modified: 2026-09-10T03:50:00.353Z
- Also known as: GHSA-fr5h-rqp8-mj6g
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- vercel next.js: >= 13.4.0, < 14.1.1; from 13.4.0 before 14.1.1
- next (npm): from 13.4.0 before 14.1.1

## Every score

- GitHub_M: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-fr5h-rqp8-mj6g> (vendor-advisory, web)
- <https://github.com/vercel/next.js/pull/62561> (issue-tracking, patch, web)
- <https://github.com/vercel/next.js/commit/8f7a6ca7d21a97bc9f7a1bbe10427b5ad74b9085> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-34351> (advisory)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2024-34351](https://www.cve.org/CVERecord?id=CVE-2024-34351), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-fr5h-rqp8-mj6g](https://github.com/advisories/GHSA-fr5h-rqp8-mj6g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-34351](https://nvd.nist.gov/vuln/detail/CVE-2024-34351), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34351 · Whole record: https://cve.day/CVE-2024-34351.json · Rebuilt by cve.day 2026-11-25T22:58:40.176Z
