Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-107380— enshrined/svg-sanitize: Stored XSS via DTD Entity / HTML5 Named Character Reference Collision

Quick assessment

Affected
darylldoyle svg-sanitizer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

savg-sanitizer 是一个用于 PHP 的 SVG/XML 清理器。在 1.0.0 版本之前,svg-sanitizer 的 isHrefSafeValue() 方法会在 XML DTD 实体扩展之后验证 SVG 的 href 属性,但 saveXML() 方法在移除 DTD 声明后会保留原始的实体引用。通过构造特定的实体(例如 Tab),该实体可能使清理器误认为其是一个安全的片段前缀;然而,在后续的内联 HTML 渲染过程中,HTML5 命名字符参考解析会将残留的实体引用转换为空白字符,从而暴露出 ja

CVSS 5.4 · Medium

Affected Version Matrix 1

VendorProduct Version RangeStatus
darylldoyle svg-sanitizer < 1.0.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-107380

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
enshrined/svg-sanitize: Stored XSS via DTD Entity / HTML5 Named Character Reference Collision
Source: CVE Program / CVE List V5
Vulnerability Description
savg-sanitizer is a PHP SVG/XML sanitizer. Prior to 1.0.0, svg-sanitizer's isHrefSafeValue() validates an SVG href after XML DTD entity expansion, but saveXML() serializes the original entity reference after removing the DTD declaration. A crafted entity such as Tab can appear to the sanitizer as a safe fragment prefix while HTML5 Named Character Reference resolution during inline HTML rendering later converts the surviving reference to whitespace, exposing a javascript: URL. When an application embeds the sanitized SVG inline, a user who activates the link can cause script to execute in the embedding page's origin. This issue is fixed in version 1.0.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
darylldoyle svg-sanitizer < 1.0.0 -

II. Public POCs for CVE-2026-107380

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-107380

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-107380 (1)

Other References for CVE-2026-107380 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-107380

No comments yet


Leave a comment