CVE-2026-121447

svg-sanitizer before 1.1.0 XSS via animateTransform on Safari

Published Nov 3, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
svg-sanitizer before 1.1.0 contains a cross-site scripting vulnerability that allows attackers to bypass sanitization by placing javascript: URLs in the animateTransform values attribute. Attackers can upload crafted SVG files whose animateTransform targets the href attribute, executing arbitrary JavaScript when Safari users click the link.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade svg‑sanitizer to version 1.1.0 or later to remove the animateTransform bypass
  • If an upgrade is not immediately possible, configure the application to reject or strip animateTransform elements that reference the href attribute from incoming SVG files
  • Implement a strict Content Security Policy that disallows script execution from data: URIs or inline event handlers to mitigate potential XSS payloads

Generated by OpenCVE AI on November 3, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Darylldoyle
Darylldoyle svg-sanitizer
Vendors & Products Darylldoyle
Darylldoyle svg-sanitizer
Type Values Removed Values Added
Description svg-sanitizer before 1.1.0 contains a cross-site scripting vulnerability that allows attackers to bypass sanitization by placing javascript: URLs in the animateTransform values attribute. Attackers can upload crafted SVG files whose animateTransform targets the href attribute, executing arbitrary JavaScript when Safari users click the link.
Title svg-sanitizer before 1.1.0 XSS via animateTransform on Safari
First Time appeared Drupal
Drupal svg Sanitizer
Weaknesses CWE-79
CPEs cpe:2.3:a:drupal:svg_sanitizer:*:*:*:*:*:*:*:*
Vendors & Products Drupal
Drupal svg Sanitizer
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 3:36 PM
Reserved
Nov 3, 2026, 12:33 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 9, 2026, 4:17 PM