Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify 3.1.3 – ≤ 3.3.1, 2.5.3 – ≤ 2.5.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-dompurify 3.3.2+dfsg-1 —
Debian 13 node-dompurify No fix yet —
Debian 12 node-dompurify No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-dompurify No fix yet —
Ubuntu 26.04 LTS node-dompurify No fix yet —
Ubuntu 25.10 node-dompurify No fix yet —
Ubuntu 24.04 LTS node-dompurify No fix yet —
Ubuntu 22.04 LTS node-dompurify No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cacti 1.2.30+git306.82d5aef5-1.1 openSUSE-SU-2026:10599-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3 +1 3.160.0-r1 —
Wolfi rolling opensearch-dashboards-3 +12 3.5.0-r6 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify >= 3.1.3, < 3.3.2 3.3.2 GHSA-v2wj-7wpq-c8vv
npm dompurify >= 2.5.3, < 2.5.9 2.5.9 GHSA-v2wj-7wpq-c8vv

Advisories 5

References