{"id":"GHSA-4342-x723-ch2f","revision":"7d749e12df044cafa0d6266d42010115","records":[{"revision":"7d749e12df044cafa0d6266d42010115","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-4342-x723-ch2f","aliases":["CVE-2025-57822"],"title":"Next.js Improper Middleware Redirect Handling Leads to SSRF","description":"A vulnerability in **Next.js Middleware** has been fixed in **v14.2.32** and **v15.4.7**. The issue occurred when request headers were directly passed into `NextResponse.next()`. In self-hosted applications, this could allow Server-Side Request Forgery (SSRF) if certain sensitive headers from the incoming request were reflected back into the response.\n\nAll users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the `next()` function.\n\nMore details at [Vercel Changelog](https://vercel.com/changelog/cve-2025-57822)","state":0,"publishedAt":"2025-08-29T21:33:09+00:00","modifiedAt":"2026-09-10T03:50:26.5457852+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.9.9"},{"kind":"fixed","version":"14.2.32"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"15.0.0-canary.0"},{"kind":"fixed","version":"15.4.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f","https://nvd.nist.gov/vuln/detail/CVE-2025-57822","https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8","https://github.com/vercel/next.js","https://vercel.com/changelog/cve-2025-57822"],"sourceUrl":"https://github.com/advisories/GHSA-4342-x723-ch2f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4342-x723-ch2f","identifiers":["GHSA-4342-x723-ch2f","CVE-2025-57822"]},"retained":false,"historicalAffected":[]}],"coverage":[]}