CVE-2026-145156: sanitize-html 2.17.7 before 2.18.2 XSS via SMIL attributeName Extra-Colon Bypass
sanitize-html 2.17.7 before 2.18.2 contains a cross-site scripting vulnerability that allows attackers to bypass allowedSchemes by supplying SVG animation attributeName values with multiple colons. Attackers can submit markup like attributeName xlink:href:x with javascript: URLs in values, from, or to attributes, executing script when victims click the animated link.
Affected Software
Event History
Frequently Asked Questions
Which applications are realistically exposed to this issue?
Applications using sanitize-html versions from 2.17.7 before 2.18.2 are exposed if they sanitize attacker-controlled markup and permit the relevant SVG animation attributes or output that markup where a victim can interact with the animated link.
What must an attacker provide for exploitation to succeed?
The attacker must be able to submit crafted SVG markup containing an animation attributeName value with multiple colons, such as xlink:href:x, and a javascript: URL in a values, from, or to attribute. Exploitation also requires a victim to click the animated link.
Is user interaction required?
Yes. The supplied vector executes script when a victim clicks the animated link.
How can I determine whether my application is affected?
Check whether the application uses npm sanitize-html version 2.17.7 through any version before 2.18.2. Then review whether untrusted sanitized content can include SVG animation markup with attributeName and values, from, or to attributes.