Read the docs

Cross-site scripting in svg-sanitizer via animateTransform on Safari

Priority LOW 23CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

The svg-sanitizer package before 1.1.0 contains a cross-site scripting flaw (CWE-79) that lets attackers bypass its sanitization by placing javascript: URLs in animateTransform values attributes. An attacker can upload a crafted SVG file whose animateTransform targets the href attribute, and JavaScript runs when a Safari user clicks the link. The attack requires user interaction, and the CVSS 4.0 base score is 5.3 (MEDIUM).

Written with Claude Haiku 5.5 from the sources below · 2026-11-03

Description from the CNA

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.

Why it matters now

EPSS 0.00171 6th percentileScored 2026-11-07
Fix Fixed svg-sanitizer (darylldoyle): 1.1.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
darylldoylesvg-sanitizerbefore 1.1.01.1.0Patch availableCNA
  • svg-sanitizer Vendordarylldoyle Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA

Remediation

Upgrade svg-sanitizer to version 1.1.0 or later.

Written with Claude Haiku 5.5 from the sources below · 2026-11-03

  • Fix · CNA svg-sanitizer (darylldoyle) Fixed in 1.1.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    darylldoyle svg-sanitizer 1.1.0

    4 records Highest priority Priority HIGH 1 HIGH, 2 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-84327 svg-sanitizer ReDoS and Fail-Open via image-set CSS StrippingPriority HIGH 69
    • TI-2026-84328 Incomplete url() filtering in svg-sanitizer allows remote URL requestsPriority MEDIUM 57
    • TI-2026-84326 Algorithmic complexity denial of service in svg-sanitizer via use referencesPriority MEDIUM 44

Timeline

  1. 2026-11-03 Threatist record created from CVE-2026-121447
  2. 2026-11-03 Alias added: GHSA-w5hc-8c8h-8vm3

References

  • TI-2026-81116 Quadratic CPU exhaustion in svg-sanitizer PHP tag stripping CVSS 4.0HIGH 8.7
  • TI-2026-84327 svg-sanitizer ReDoS and Fail-Open via image-set CSS Stripping CVSS 4.0HIGH 8.2
  • TI-2026-74075 Mixed-case xlink:HrEf bypasses use nesting limit in svg-sanitizer CVSS 3.1MEDIUM 6.5
  • TI-2026-69645 Denial of service in enshrined/svg-sanitize via crafted SVG DTD CVSS 3.1MEDIUM 6.5
  • TI-2026-84328 Incomplete url() filtering in svg-sanitizer allows remote URL requests CVSS 4.0MEDIUM 5.3
  • TI-2026-81115 darylldoyle svg-sanitizer CSS Injection and Remote Reference Bypass CVSS 4.0MEDIUM 5.1
See all 11 →

Sources