Next.js: SVG rejection bypass in the image optimization

State
Published
Severity
6.9 Medium
Published
Nov 16, 2026
Updated
Nov 18, 2026
Reserved
Oct 29, 2026

Read the record on cve.org

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.

ProductVersions
next.js vercel>= 15.0.0, < 15.5.29 Affected>= 16.0.0, < 16.4.5 Affected

Weaknesses

  • CWE-1287 Improper Validation of Specified Type of Input

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.