CVE-2025-57822Next.js Improper Middleware Redirect Handling Leads to SSRF
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 2.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.3%
- percentile 84%
- Fix
- Named by a source
- CVE published 29 Aug 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.3% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- next (npm): upgrade to 14.2.32 / 15.4.7 or later on your release line.
- Patch: https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8
- Mitigation: https://vercel.com/changelog/cve-2025-57822
- Advisory: https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-57822
Who should check
next (npm) pkg:npm/next
- Affected>= 0.9.9, < 14.2.32Fixed in14.2.32OSV (GHSA-4342-x723-ch2f)
- Affected>= 15.0.0-canary.0, < 15.4.7Fixed in15.4.7OSV (GHSA-4342-x723-ch2f)
vercel next.js product:vercel/nextjs
- Affected< 14.2.32Affected range ends before14.2.32as published by CNA (CVE List)
- Affected< 15.4.7Affected range ends before15.4.7as published by CNA (CVE List)
- Affected< 14.2.32Affected range ends before14.2.32as published by CPE data (via the NVD API)
- Affected>= 15.0.0, < 15.4.7Affected range ends before15.4.7as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 8.2 HIGH (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-918
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)Next.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function.
Update history
- 18 May 2026Exploitation more likely 6.5% → 13.3%
- 15 May 2026Exploitation more likely 6.5% → 13.3%
- 29 Aug 2025Published
References
- patchhttps://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8
- advisoryhttps://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f
- mitigationhttps://vercel.com/changelog/cve-2025-57822
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-57822
- otherhttps://github.com/vercel/next.js
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-57822 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-4342-x723-ch2f (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 23 min ago · osv 22 min ago · nvd 83 min ago · epss 22 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-4342-x723-ch2f