{"schemaVersion":3,"id":"CVE-2025-57822","aliases":["CGA-c2mp-984r-rccm","CGA-c7r8-v3v2-h3p3","CGA-crm6-3884-733r","GHSA-4342-x723-ch2f"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-08-29T21:33:15.304Z","modified":"2025-09-02T17:26:25.016Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":5.6,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":5.6,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":5.6,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02584,"percentile":0.85033,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.08899999999999984,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02495},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02584,"percentile":0.85033}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02495,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02584,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02584,"percentile":0.85033}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery (SSRF)","description":"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"chainguard","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.11.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.0-r1","eol":null,"hubHref":null},{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 0.9.9, < 14.2.32","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0.0-canary.0, < 15.4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.9.9, < 14.2.32 | ≥ 15.0.0-canary.0, < 15.4.7","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null},{"vendor":"vercel","product":"next.js","name":"next.js","label":"next.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 15.4.7","noFixRecorded":false,"fixedIn":null},{"text":"< 14.2.32","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0.0, < 15.4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 15.4.7 | < 14.2.32 | ≥ 15.0.0, < 15.4.7","eol":null,"hubHref":"/vendor/vercel/nextjs"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f","label":"github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Vendor Advisory"]},{"url":"https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8","label":"github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://vercel.com/changelog/cve-2025-57822","label":"vercel.com/changelog/cve-2025-57822","hostname":"vercel.com","tags":["X Refsource MISC","WEB","Mitigation","Vendor Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57822.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57822.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57822","label":"nvd.nist.gov/vuln/detail/CVE-2025-57822","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-WPVJ-5HJH-P49G"]},"timeline":[{"kind":"published","date":"2025-08-29T21:33:15.304Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-09-02T17:26:25.016Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:39:08.672Z","stale":false,"partial":false}}