SCA: security update for xhtml-purifier (GHSA-j8r4-32c5-33rc)

medium Tenable Self-Hosted Container Security Plugin ID 448341

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-61784)

Solution

Update the xhtml-purifier library and its related packages to version 0.4.3 or later.

See Also

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

Plugin Details

Severity: Medium

ID: 448341

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 9/25/2026

Updated: 9/25/2026

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.98

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2026-61784

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/24/2026

Vulnerability Publication Date: 9/24/2026

Reference Information

CVE: CVE-2026-61784