AploSec / Disclosures / CVE-2026-145156

Low 2.3ReportedFixed in 2.18.2CWE-184npm

sanitize-html 2.17.7 before 2.18.2 XSS via SMIL attributeName Extra-Colon Bypass

CVE-2026-145156 · published 2026-12-04

In plain words: this type of bug lets two parts of a system read the same input differently, so a check can be slipped past (parsing mismatch). A fixed release is listed.

Summary

CVE-2026-145156 affects sanitize-html (npm) 2.17.7 to < 2.18.2: XSS via SMIL attributeName Extra-Colon Bypass (CWE-184). Fixed in 2.18.2. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

Upgrade sanitize-html to 2.18.2 or later. Releases in the affected range (2.17.7 to < 2.18.2) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-12-04 CVE published

References

Severity
Low 2.3CVSS 4.0, scored by VulnCheck in the CVE record
Package
sanitize-html
Ecosystem
npm
Affected
2.17.7 to < 2.18.2
Fixed
2.18.2
Weakness
CWE-184
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder