{"id":"CVE-2025-57822","revision":"446d3e48a5f4450e97e8f97f2dd13609","records":[{"revision":"446d3e48a5f4450e97e8f97f2dd13609","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-57822","aliases":[],"title":"Next.js Improper Middleware Redirect Handling Leads to SSRF","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.","state":0,"publishedAt":"2025-08-29T21:33:15.304+00:00","modifiedAt":"2025-09-02T17:26:25.016+00:00","affected":[{"ecosystem":"Vendor product","name":"next.js","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"vercel\",\n                    \"product\": \"next.js\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 14.2.32\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 15.4.7\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f","https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8","https://vercel.com/changelog/cve-2025-57822"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-57822","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-57822","identifiers":["CVE-2025-57822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}