CVE-2025-57822 - CVE House
Back to Database
Status published Medium CVE-2025-57822

Next.js Improper Middleware Redirect Handling Leads to SSRF

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-57822

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

next.js
Vulnerable Versions:
< 14.2.32, < 15.4.7

Timeline

Official Publish: August 29th, 2025
Last Modified: September 2nd, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

Weaknesses (CWE)