Vulnerabilities · 2025 · Vercel
CVE-2025-57822
Vercel Next.js vulnerability
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.
Affected products
Next.js. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vercel Next.js runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f · Vendor Advisory
- vercel.com/changelog/cve-2025-57822 · Mitigation
- github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-57822
- github.com/advisories/GHSA-4342-x723-ch2f
- nvd.nist.gov/vuln/detail/CVE-2025-57822
- cve.org/CVERecord?id=CVE-2025-57822
More vulnerabilities in Vercel products
CVE-2025-67779CVE-2025-57752CVE-2025-55184CVE-2025-55183CVE-2025-55182CVE-2025-55173CVE-2025-49826CVE-2025-49005All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.