VulnerabilityCVE-2026-61784GHSA-j8r4-32c5-33rc
xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS
Not on CISA KEVCVSS 6.1 (v3.1)
Summary
xhtml-purifier is a Node.js library to take in raw/unknown/untrusted HTML and output cleaned, purified, trusted HTML. Versions prior to 0.4.3 do not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- CVE List Source: CVE Program (cve.org)
- GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)