{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-64645","id":"CVE-2026-64645","title":"Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname","description":"Next.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, a\n rewrites() or redirects() rule that builds its external destination hostname from request-controlled input can be pointed at an arbitrary hostname, regardless of the rule's hostname suffix. For a rewrite, Next.js proxies the request to that arbitrary host and ser","descriptionLong":"Next.js is a React framework for building full-stack web applications. In versions 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, a\n rewrites() or redirects() rule that builds its external destination hostname from request-controlled input can be pointed at an arbitrary hostname, regardless of the rule's hostname suffix. For a rewrite, Next.js proxies the request to that arbitrary host and serves the response from the application's origin, leading to Server-Side Request forgery. A redirects() rule configured this way is vulnerable to an Open Redirect. This issue has been fixed in versions 15.5.21 and 16.2.11.","published":"2026-07-27T17:37:07.695Z","updated":"2026-10-28T02:31:02.896077306Z","reserved":"2026-07-20T17:11:30.895Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["vercel next.js"],"affectedProducts":[{"vendor":"vercel","product":"next.js","defaultStatus":null,"versions":[{"version":">= 12.0.0 < 15.5.21","status":"affected"},{"version":">= 16.0.0, < 16.2.11","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=12.0.0 <15.5.21",">=16.0.0 <16.2.11"],"fixed":["15.5.21","16.2.11"],"advisory":"GHSA-p9j2-gv94-2wf4"}],"cwes":["CWE-918","CWE-601"],"aliases":["GHSA-p9j2-gv94-2wf4"],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4","tags":["x_refsource_CONFIRM","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.21","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.2.11","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64645.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64645","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.00457,"epssPercentile":0.40418,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-64645","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64645","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-64645","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p9j2-gv94-2wf4","ok":true,"note":"GHSA-p9j2-gv94-2wf4"},{"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-2026-64645","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nextjs"],"critical":[],"attention":null}