Feed
8.2HIGH

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%
Priority
26/100 medium
how it is computed
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

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

Sources

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