ADVISORIES

GitHub Advisory Database

GHSA-7qx7-33qx-rqx2

Next.js: SVG rejection bypass in the image optimization

Moderate CVE-2026-119347

Details

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.

Affected packages

EcosystemPackageAffected versions
npmnext
From 15.0.0 before 15.5.29 (fixed in 15.5.29)
npmnext
From 16.0.0 before 16.4.5 (fixed in 16.4.5)

References