CVE-2026-0540Cure53 Dompurify
Medium 5.3 No auth needed
Follow: this CVE · Cure53 · Cure53 Dompurify We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Dompurify.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| cure53 | dompurify | ≥ 2.5.3 ≤ 2.5.8 |
| cure53 | dompurify | ≥ 3.1.3 ≤ 3.3.1 |
Official advisories
- cacti-1.2.30+git306.82d5aef5-1.1 on GA media · SUSE · openSUSE-SU-2026:10599-1 · Apr 22, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- fluidattacks.com
- github.com Product
- github.com
- github.com
- www.vulncheck.com Third Party Advisory