Next.js: SVG rejection bypass in the image optimization
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| npm:next | >= 15.0.0, <= 15.5.28 | 15.5.29 |
| npm:next | >= 16.0.0, <= 16.4.4 | 16.4.5 |
On self-hosted deployments, the Next.js image optimizer (/_next/image) can be made to process an attacker-supplied SVG even when SVG support is disabled with dangerouslyAllowSVG: false (the default). This reaches an SVG parser the application intended to keep disabled, increasing exposure to denial of service and SVG decoder vulnerabilities.
Read on GitHub Advisory Database
VulnPulse explainer for this vulnerabilityNext.js 16.4.5 and 15.5.29 fix seven flaws, most of them caches serving one tenant's or user's content to another
On 11/20/2026, 07:23 AM, GitHub Advisory Database published "Next.js: SVG rejection bypass in the image optimization" (type: Advisory). Severity is "Medium" (medium). Related technologies: JavaScript / Node.js, Next.js. CVE: CVE-2026-119347.