Technical impact
Next.js’s image optimizer incorrectly accepts SVG files even when dangerouslyAllowSVG is set to false, allowing the SVG to be parsed by the application’s SVG decoder. A crafted SVG uploaded through the /_next/image endpoint can trigger denial‑of‑service conditions or expose additional SVG‑related weaknesses. The flaw is identified as CWE-1287.
Affected Systems
Self‑hosted deployments of Vercel’s Next.js framework from version 15.0.0 up to but excluding 15.5.29, and from 16.4.0 up to but excluding 16.4.5, are affected. The vulnerability is fixed in versions 15.5.29 and 16.4.5 and later, which implement the proper SVG rejection policy when dangerouslyAllowSVG is false.
Risk and Exploitability
The CVSS score of 6.9 reflects moderate severity. EPSS is unavailable, so the likelihood of exploitation is unquantified, and the vulnerability is not listed in the CISA KEV catalog, indicating no known public exploits. The likely attack vector is remote: an external actor can upload a malicious SVG to the /_next/image endpoint of a vulnerable site, triggering the bypass and potentially causing a denial‑of‑service or further SVG‑based weaknesses.