Skip to content
Medium 6.9

Next.js: SVG rejection bypass in the image optimization

CVE-2026-119347 First seen on SecPulse

Affected packages

PackageAffected → Fixed
npmnext
< 16.4.5→ 16.4.5
npmnext
>= 15.0.0, <= 15.5.28→ Not listed
vercelnext.js —
Original description The description as published by the source.

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.

Source: GitHub Repository Security Advisories (Game のスタック) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details