Skip to content
OpenAdvisories
Medium · 6.1 CVE-2025-15599 EUVD-2025-208240GHSA-v8jm-5vwx-cfxm

DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML

Published Mar 3, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

DOMPurify 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8 contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting missing textarea rawtext element validation in the SAFE_FOR_XML regex. Attackers can include closing rawtext tags like </textarea> in attribute values to break out of rawtext contexts and execute JavaScript when sanitized output is placed inside rawtext elements. The 3.x branch was fixed in 3.2.7; the 2.x branch was never patched.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify 3.1.3 – ≤ 3.2.6, 2.5.3 – ≤ 2.5.8 3.2.7

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 —

Wolfi

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

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify >= 3.1.3, < 3.2.7 3.2.7 GHSA-v8jm-5vwx-cfxm
npm dompurify >= 2.5.3, <= 2.5.8 — GHSA-v8jm-5vwx-cfxm

Advisories 3

References