THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-j8r4-32c5-33rc (medium) — xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS

[GHSA] GHSA-j8r4-32c5-33rc (medium) — xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS

medgithub_advisoriesPublished 2026-09-24

GHSA-j8r4-32c5-33rc Severity: medium CVE: CVE-2026-61784

xhtml-purifier has HTML attribute-injection (sanitizer bypass) that leads to XSS

xhtml-purifier does not HTML-entity-encode attribute values when serializing its sanitized output. In attributeString() (XHTMLPurifier.js, around line 148) the attribute value is concatenated directly into a double-quoted attribute without encoding. As a resul

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-j8r4-32c5-33rc