CVE-2025-57822 Details
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.
A Server-Side Request Forgery (SSRF) vulnerability has been identified in Next.js versions prior to 14.2.32 and 15.4.7. The issue arises in self-hosted applications that incorrectly forward user-supplied headers when the next() function is used without explicitly passing the request object. This vulnerability allows an attacker to manipulate internal requests through middleware, potentially accessing sensitive resources or services.
Users are advised to upgrade to Next.js versions 14.2.32 or 15.4.7. For those who cannot upgrade immediately, ensure that middleware follows official guidance by explicitly passing the request object and avoiding the unvalidated forwarding of user-controlled headers.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8 | [email protected] | Patch |
| https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f | [email protected] | Vendor Advisory |
| https://vercel.com/changelog/cve-2025-57822 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | < 14.2.32 >= 15.0.0, < 15.4.7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 8, 2025 | Initial Analysis | [email protected] |
| Aug 29, 2025 | New CVE Received | [email protected] |