Input validation error in SVG Sanitizer - #VU146565
Published: September 1, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary JavaScript in the victim\'s browser.
The vulnerability exists due to improper input validation in href validation in svg-sanitize when processing crafted SVG content with DTD entity and HTML5 named character reference collisions. A remote user can upload a specially crafted SVG that passes sanitization and is later rendered inline in HTML to execute arbitrary JavaScript in the victim\'s browser.
User interaction is required to click the rendered link, and exploitation requires the sanitized SVG to be embedded inline in HTML rather than loaded through an img element.