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

Source: https://aplosec.si/cve/CVE-2026-145156/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-145156

Low 2.3 · Reported · Fixed in 2.18.2 · CWE-184 · npm

# 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

- [Referencehttps://github.com/apostrophecms/apostrophe/security/advisories/GHSA-8g6g-w2rq-xcmc](https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-8g6g-w2rq-xcmc)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/sanitize-html-2.17.7-before-2.18.2-xss-via-smil-attributename-extra-colon-bypass](https://www.vulncheck.com/advisories/sanitize-html-2.17.7-before-2.18.2-xss-via-smil-attributename-extra-colon-bypass)

- [Fix commithttps://github.com/apostrophecms/apostrophe/commit/bd727d101de798d574196173f3cbc4f9aaedb3f7](https://github.com/apostrophecms/apostrophe/commit/bd727d101de798d574196173f3cbc4f9aaedb3f7)

- [Vulnerable codehttps://github.com/apostrophecms/apostrophe/blob/sanitize-html%402.18.2/packages/sanitize-html/CHANGELOG.md](https://github.com/apostrophecms/apostrophe/blob/sanitize-html%402.18.2/packages/sanitize-html/CHANGELOG.md)

- [Vulnerable codehttps://github.com/apostrophecms/apostrophe/blob/sanitize-html%402.18.1/packages/sanitize-html/index.js#L1018-L1043](https://github.com/apostrophecms/apostrophe/blob/sanitize-html%402.18.1/packages/sanitize-html/index.js#L1018-L1043)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145156](https://www.cve.org/CVERecord?id=CVE-2026-145156)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-145156](https://nvd.nist.gov/vuln/detail/CVE-2026-145156)

**Severity:** Low 2.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-145156)

**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
