Live threats

All CVEs / Cure53

CVE-2026-0540Cure53 Dompurify

Medium 5.3 No auth needed

Priority
47
CVSS 4.0
5.3
EPSS
—
Auth required
No
Published
Mar 3, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dompurify.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm dompurify ≥ 3.1.3 < 3.3.2 3.3.2 npm install dompurify@3.3.2
npm dompurify ≥ 2.5.3 < 2.5.9 2.5.9 npm install dompurify@2.5.9

Per OSV / GitHub Advisories (GHSA-v2wj-7wpq-c8vv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cure53dompurify≥ 2.5.3 ≤ 2.5.8
cure53dompurify≥ 3.1.3 ≤ 3.3.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.