CVE-2026-145156: sanitize-html 2.17.7 before 2.18.2 XSS via SMIL attributeName Extra-Colon Bypass

Published Dec 4, 2026
·
Updated

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

1 affected component
npm/sanitize-html>=2.17.7<2.18.2

Event History

Dec 4, 2026
CVE Published
via MITRE·04:31 PM
Data Sourced
via MITRE·04:31 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

Is user interaction required?

Yes. The supplied vector executes script when a victim clicks the animated link.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203