Skip to main content
VulnerabilityPublished

CVE-2026-61784: cstigler node-xhtml-purifier · Cross-site Scripting

Affects cstigler node-xhtml-purifierSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium : upgrade to 0.4.3 when convenient.

Data as of 6 Nov 2026, 23:24 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 7 Nov 2026.

What to do

Upgrade cstigler node-xhtml-purifier to 0.4.3.

Affected software

ProductAffectedFixed in
cstiglernode-xhtml-purifierAffected
  • <0.4.3
Fixed in
  • 0.4.3
npmnode-xhtml-purifierpkg:npm/node-xhtml-purifierOther threatsAffected
  • <0.4.3
Fixed in
  • 0.4.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to node-xhtml-purifier version 0.4.3 or later, where attribute values are properly HTML-entity-encoded before serialization, eliminating the XSS vulnerability. No other mitigation is indicated or required.

Description

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 value is concatenated directly into a double-quoted attribute without encoding. As a result, an attacker-controlled value in any allowed attribute (class, style, title, alt, src, href) can include a double-quote character to break out of the attribute and inject an additional attribute, such as a JavaScript event handler (for example onmouseover or onerror). The injected handler survives sanitization and executes when the output is rendered, which is a sanitizer bypass leading to cross-site scripting. The fix in version 0.4.3 HTML-entity-encodes attribute values before serialization.

References

Community reviews

Loading reviews…