Skip to main content
VulnerabilityPublished

CVE-2026-107380: darylldoyle svg-sanitizer · Cross-site Scripting

Affects darylldoyle svg-sanitizerSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.4 Medium : upgrade to 1.0.0 when convenient.

Data as of 22 Nov 2026, 21:14 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.0.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 8 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Upgrade svg-sanitizer and darylldoyle/svg-sanitizer to 1.0.0.

Affected software

ProductAffectedFixed in
darylldoylesvg-sanitizerAffected
  • <1.0.0
Fixed in
  • 1.0.0
Packagistdarylldoyle/svg-sanitizerpkg:composer/darylldoyle/svg-sanitizerOther threatsAffected
  • <1.0.0
Fixed in
  • 1.0.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to svg-sanitizer version 1.0.0 or later, where this vulnerability is fixed.

Description

A cross-site scripting (XSS) vulnerability exists in darylldoyle svg-sanitizer versions prior to 1.0.0. The issue arises because the sanitizer validates SVG href attributes after XML DTD entity expansion but serializes the original entity reference without the DTD declaration. This discrepancy allows crafted entities to bypass validation and later be interpreted as JavaScript URLs during HTML5 rendering, enabling script execution in the embedding page's origin. The vulnerability is fixed in version 1.0.0.

References

Community reviews

Loading reviews…