{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-57822","id":"CVE-2025-57822","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","descriptionLong":"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.","published":"2025-08-29T21:33:15.304Z","updated":"2026-10-28T02:30:34.718023907Z","reserved":"2025-08-20T14:30:35.011Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vercel next.js"],"affectedProducts":[{"vendor":"vercel","product":"next.js","defaultStatus":null,"versions":[{"version":"< 14.2.32","status":"affected"},{"version":"< 15.4.7","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=0.9.9 <14.2.32",">=15.0.0-canary.0 <15.4.7"],"fixed":["14.2.32","15.4.7"],"advisory":"GHSA-4342-x723-ch2f"}],"cwes":["CWE-918"],"aliases":["GHSA-4342-x723-ch2f"],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://vercel.com/changelog/cve-2025-57822","tags":["x_refsource_MISC","Mitigation","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57822.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57822","tags":["advisory"]},{"url":"https://github.com/vercel/next.js","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.02789,"epssPercentile":0.86752,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-57822","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57822","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-57822","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4342-x723-ch2f","ok":true,"note":"GHSA-4342-x723-ch2f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-57822","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["nextjs"],"critical":[],"attention":null}