CVE-2025-57822CWE-918ssrf

CVE-2025-57822

Medium · published August 30, 2025

CVSS v3.1
6.5
EPSS
3%
Percentile
85.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.02584 · 85.1th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2025-08-30T02:15Z
Affected products (2)
ProductVersionsFixed in
vercel/next.js< 14.2.3214.2.32
vercel/next.js≥ 15.0.0, < 15.4.715.4.7
References (3)
EPSS history
Timeline
  • 29 AUG 21:33Z
    Next.js Improper Middleware Redirect Handling Leads to SSRF
    cvelistv5