PatchSiren cyber security CVE debrief
CVE-2026-107380 darylldoyle CVE debrief
A vulnerability in the svg-sanitizer library allows for stored XSS via DTD entity and HTML5 named character reference collision. The issue arises from the library's handling of SVG href attributes after XML DTD entity expansion. A crafted entity can appear safe to the sanitizer but later be converted to a javascript: URL during inline HTML rendering, leading to script execution in the embedding page's origin when a user activates the link.
- Vendor
- darylldoyle
- Product
- svg-sanitizer
- CVSS
- MEDIUM 5.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-08
- Original CVE updated
- 2026-10-09
- Advisory published
- 2026-10-08
- Advisory updated
- 2026-10-09
Who should care
Defenders responsible for systems embedding sanitized SVGs, particularly those using svg-sanitizer versions prior to 1.0.0, should assess exposure and prioritize updates. This includes operators managing affected deployments, platform administrators, vulnerability management teams, and security teams that need to verify version details and potential exploits with official sources.
Why it matters
CVE-2026-107380 is a stored XSS vulnerability in svg-sanitizer that can lead to script execution in the embedding page's origin. Defenders should prioritize updating to version 1.0.0 and assess exposure in systems embedding sanitized SVGs.
- Script execution in the embedding page's origin
- Potential for user-activated link exploitation
- Need for version verification and updates
- Importance of assessing exposure in systems embedding sanitized SVGs
Technical summary
The svg-sanitizer library, prior to version 1.0.0, is vulnerable to stored XSS attacks. The isHrefSafeValue() function validates SVG href attributes after XML DTD entity expansion, but saveXML() serializes the original entity reference after removing the DTD declaration. This can lead to a crafted entity being interpreted as a safe fragment prefix, which is later converted to a javascript: URL during inline HTML rendering, resulting in script execution in the embedding page's origin.
Defensive priority
Defenders should prioritize updating to version 1.0.0 of svg-sanitizer and assess exposure in systems embedding sanitized SVGs.
Recommended defensive actions
- Update svg-sanitizer to version 1.0.0
- Assess exposure in systems embedding sanitized SVGs
- Verify version details and potential exploits with official sources
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE record and source item provide details on the vulnerability, its impact, and the fix in version 1.0.0. However, specific version details and potential exploits require verification from official sources.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-107380 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-107380
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-107380 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-107380
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
enshrined/svg-sanitize: Stored XSS via DTD Entity / HTML5 Named Character Reference Collision
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/107xxx/CVE-2026-107380.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/darylldoyle/svg-sanitizer/security/advisories/GHSA-9rjx-3jch-6vjf
Supplemental source - x_refsource_CONFIRM
-
Source reference
Unverified legacy reference
URL: https://github.com/darylldoyle/svg-sanitizer/commit/23877db7e76f1e1df5c3e65ab30239219c3d2867
Supplemental source - x_refsource_MISC
-
Source reference
Unverified legacy reference
URL: https://github.com/darylldoyle/svg-sanitizer/releases/tag/1.0.0
Supplemental source - x_refsource_MISC
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.