← Vulnerabilities

MediumAdvisoryJavaScript / Node.jsNext.js

Next.js: SVG rejection bypass in the image optimization

Affected

PackageAffected versionsFixed in
npm:next>= 15.0.0, <= 15.5.2815.5.29
npm:next>= 16.0.0, <= 16.4.416.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

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.