SCA: security update for dompurify (GHSA-v2wj-7wpq-c8vv)

medium Tenable Cloud Security Plugin ID 438445

Description

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

- DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site
scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing
rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can
include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript
when sanitized output is placed inside these unprotected rawtext contexts. (CVE-2026-0540)

Solution

Update the dompurify library and its related packages to version 2.5.9 or later.

See Also

https://github.com/advisories/GHSA-v2wj-7wpq-c8vv

Plugin Details

Severity: Medium

ID: 438445

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 3/6/2026

Updated: 5/11/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 0

Percentile: 0

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

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

CVSS v4

Risk Factor: Medium

Base Score: 5.3

Threat Score: 1.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/3/2026

Vulnerability Publication Date: 3/3/2026

Reference Information

CVE: CVE-2026-0540

cwe: CWE-79