{"id":"CVE-2026-64645","published":"2026-07-27T17:37:07Z","modified":"2026-07-28T14:02:21Z","title":"Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00457,"percentile":0.40554,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.21","tags":["x_refsource_MISC"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.2.11","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.11},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":[">= 12.0.0 < 15.5.21",">= 16.0.0, < 16.2.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-28T14:01:56.498968Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=12.0.0, <15.5.21",">=16.0.0, <16.2.11"],"patched":["15.5.21","16.2.11"],"from":["GHSA-p9j2-gv94-2wf4"],"provenance":"source"}],"summary":{"text":"Next.js (vercel's React framework) contains a server-side request forgery flaw in its rewrites() and redirects() handling, where a rule that builds its external destination hostname from request-controlled input can be steered to an arbitrary host. An unauthenticated remote attacker over the network can exploit this without user interaction and without any special configuration beyond such a rule being in place, causing rewrites to proxy requests to an arbitrary host and serve the response from the application's origin, or causing redirects to behave as an open redirect.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:49Z"},"euvd":{"id":"EUVD-2026-49378","exploited":false,"provenance":"source"}}