Skip to main content
Menu
Advisories

Next.js: SVG rejection bypass in the image optimization

GHSA-7QX7-33QX-RQX2Published Updated GitHub

Description

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 versions

References