Skip to content

CVE-2026-119347 Next.js: SVG rejection bypass in the image optimization

MediumCVSS 6.9 EPSS 0.58%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Next.js is a React framework for building full-stack web applications. From 15.0.0 until 15.5.29 and 16.4.5, the /_next/image optimizer in self-hosted Next.js deployments can process attacker-supplied SVG content even when dangerouslyAllowSVG is false, which is the default. The SVG reaches a parser that the application intended to keep disabled, increasing exposure to denial of service and vulnerabilities in SVG decoding. This issue is fixed in versions 16.4.5 and 15.5.29.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm next(npm) >= 15.0.0, < 15.5.29; >= 15.0.0, <= 15.5.28; >= 16.0.0, < 16.4.5; >= 16.0.0, <= 16.4.4 15.5.29, 16.4.5 Fixed
vercel next.js = >= 15.0.0, < 15.5.29; = >= 16.0.0, < 16.4.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
vercel next.js = >= 15.0.0, < 15.5.29 No fix listed
vercel next.js = >= 16.0.0, < 16.4.5 No fix listed
npm next(npm) >= 15.0.0, <= 15.5.28 No fix listed
npm next(npm) >= 16.0.0, <= 16.4.4 No fix listed
npm next(npm) >= 15.0.0, < 15.5.29 15.5.29
npm next(npm) >= 16.0.0, < 16.4.5 16.4.5

References