{"answers":{"affected":"4 open source packages ship an affected version, including next. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-64645 in the wild and no public exploit code.","fix":"Upgrade next to a fixed version for your release line: 15.5.21 or 16.2.11.","what":"CVE-2026-64645 is a high-severity server-side request forgery vulnerability in Vercel Next.js, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-64645 and fix it if it is affected.\n\nWhat it is: CVE-2026-64645 is a high-severity server-side request forgery vulnerability in Vercel Next.js, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-64645 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- next (npm): affected from 12.0.0; fixed in 15.5.21\n- next (npm): affected from 12.0.0; fixed in 15.5.21\n- next (npm): affected from 16.0.0; fixed in 16.2.11\n- next (npm): affected from 16.0.0; fixed in 16.2.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-64645/ (Markdown: https://insights.sbomify.com/CVE-2026-64645/index.md)","id":"CVE-2026-64645","markdown":"https://insights.sbomify.com/CVE-2026-64645/index.md","name":"CVE-2026-64645","record":{"aliases":["CLEANSTART-2026-SY86267","CLEANSTART-2026-YT06391","CLSA-2026-1792195729","CLSA-2026-1792196879","CLSA-2026-1792206306","CLSA-2026-1792272247","CLSA-2026-1792293018","CLSA-2026-1792304722","CLSA-2026-1792326310","CLSA-2026-1792338237","CLSA-2026-1792358603","CLSA-2026-1792364011","ECHO-5188-d20a-988b","GHSA-p9j2-gv94-2wf4","MINI-8h3w-75f7-75p6","MINI-9rmh-pc8w-h98g","MINI-c4hp-62hj-88hx","MINI-pfx4-3jqv-gm5f","ROOT-APP-NPM-CVE-2026-64645"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Next.js framework","requires_auth":"none","summary":"Attackers can exploit Next.js rewrites to perform Server-Side Request Forgery or Open Redirects by controlling destination hostnames, requiring specific rewrite configurations.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"next.js","vendor":"vercel"}],"cvss":{"score":8.3,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname","id":"CVE-2026-64645","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"vercel:next.js","products":["vercel:next.js"],"type":"ssrf","year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"Next.js: Unbounded Server Action payload in Edge runtime","id":"CVE-2026-64646"},"packages":[{"ecosystem":"npm","fixed":["15.5.21"],"introduced":["12.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-p9j2-gv94-2wf4"},{"ecosystem":"npm","fixed":["15.5.21"],"introduced":["12.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-p9j2-gv94-2wf4"},{"ecosystem":"npm","fixed":["16.2.11"],"introduced":["16.0.0"],"last_affected":[],"package":"next","purl":null,"source":"GHSA-p9j2-gv94-2wf4"},{"ecosystem":"npm","fixed":["16.2.11"],"introduced":["16.0.0"],"last_affected":[],"package":"next","purl":"pkg:npm/next","source":"GHSA-p9j2-gv94-2wf4"}],"prev":{"headline":"Next.js: Denial of Service in the Image Optimization API using SVGs","id":"CVE-2026-64644"},"products":["next.js"],"published":"2026-07-27","related":[{"cvss_score":9.1,"headline":"Authorization Bypass in Next.js Middleware","id":"CVE-2025-29927","kev_date_added":null,"published":"2025-03-21"},{"cvss_score":8.6,"headline":"Next.js: Server-side request forgery in applications using WebSocket upgrades","id":"CVE-2026-44578","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":8.3,"headline":"Next.js: Server-Side Request Forgery in Image Optimization","id":"CVE-2026-94483","kev_date_added":null,"published":"2026-10-02"},{"cvss_score":8.3,"headline":"Next.js: Middleware / Proxy bypass in App Router applications using Turbopack and single locale","id":"CVE-2026-64642","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.3,"headline":"Next.js: Server-Side Request Forgery in Server Actions on Custom Servers","id":"CVE-2026-64649","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.2,"headline":"Next.js: Denial of Service in App Router using Server Actions","id":"CVE-2026-64641","kev_date_added":null,"published":"2026-07-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-28","vendors":["vercel"]},"summary":"Attackers can exploit Next.js rewrites to perform Server-Side Request Forgery or Open Redirects by controlling destination hostnames, requiring specific rewrite configurations.","url":"https://insights.sbomify.com/CVE-2026-64645/"}