Technical impact
The vulnerability in svg‑sanitizer allows attackers to insert javascript: URLs in the animateTransform values attribute, escaping the library’s sanitization logic. When a Safari user clicks an SVG link whose href attribute is driven by an animateTransform element, the embedded script runs under the user’s browser context, enabling arbitrary JavaScript execution. This is a stored or embedded XSS flaw that can compromise confidentiality, integrity, or availability of the affected web application.
Affected Systems
The flaw affects installations of darylldoyle's svg‑sanitizer prior to version 1.1.0. Systems that embed this library to process user‑supplied SVG files, such as Drupal sites utilizing the svg_sanitizer component, are vulnerable. Any environment that accepts or renders SVG content is potentially at risk when the unpatched library is used.
Risk and Exploitability
The CVSS score of 5.3 indicates a medium severity vulnerability, and the EPSS score is currently unavailable, implying uncertain but possible exploitation. The flaw is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted SVG file and relies on Safari’s handling of animateTransform elements targeting the href attribute. While the attack vector is web‑based, it necessitates user interaction—specifically clicking the malicious link—making it a typical client‑side XSS scenario.