CVE-2026-65902Cure53 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
- Jul 23, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-501
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/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 before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.
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.4.7 |
3.4.7 |
npm install dompurify@3.4.7 |
Per OSV / GitHub Advisories (GHSA-76mc-f452-cxcm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cure53 | dompurify | < 3.4.7 |
Official advisories
- velociraptor-0.77.3.0.git141.b1612b50b-1.1 on GA media · SUSE · openSUSE-SU-2026:12622-1 · Nov 19, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:58502 · Aug 25, 2026 Medium
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:58500 · Aug 23, 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.
- github.com Patch
- github.com Exploit Third Party Advisory
- www.vulncheck.com Third Party Advisory