DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Versions prior to 3.4.0 have an inconsistency between FORBID_TAGS and FORBID_ATTR handling when function-based ADD_TAGS is used. Commit c361baa added an early exit for FORBID_ATTR at line 1214. The same fix was not applied to FORBID_TAGS. At line 1118-1123, when EXTRA_ELEMENT_HANDLING.tagCheck returns true, the short-circuit evaluation skips the FORBID_TAGS check entirely. This allows forbidden elements to survive sanitization with their attributes intact. Version 3.4.0 patches the issue.
CVE-2026-41240
This medium-severity CVE scores 6.1 under NVD CVSS v3. EPSS exploit probability: 0.0%, top 96% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.1
- EG Score
- 6.1(medium)
- EPSS
- 23.3%
- KEV
- Not listed
Published
April 23, 2026
Last Modified
April 29, 2026
References (4)
- security-advisories@githubhttps://github.com/cure53/DOMPurify/commit/c361baa18dbdcb3344a41110f4c48ad85bf48f80
- security-advisories@githubhttps://github.com/cure53/DOMPurify/releases/tag/3.4.0
- security-advisories@githubhttps://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m
- 134c704f-9b21-4f2e-91b3-4a467353bcc0https://github.com/cure53/DOMPurify/security/advisories/GHSA-h7mw-gpvr-xq4m
Vendor Advisories for CVE-2026-41240(16)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:36108Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Virtualization v4.13 Images
- RHSA-2026:36107Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Virtualization v4.15 Images
- RHSA-2026:34608Red Hat Product SecurityHigh
Red Hat Security Advisory: Streams for Apache Kafka 2.9.4 release and security update
- RHSA-2026:34160Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
- RHSA-2026:28010Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat build of Cryostat security update
- RHSA-2026:28001Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Virtualization v4.17 Images
- RHSA-2026:27967Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Virtualization v4.20 Images
- RHSA-2026:27944Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Virtualization v4.14 Images
- +8 more
Patch Availability(5)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | rhoai/odh-mod-arch-model-registry-rhel9:1780467147 | 2026-06-10 | redhat |
| redhat | dompurify | 2026-06-02 | redhat |
| redhat | devspaces/openvsx-rhel9:1779528224 | 2026-05-28 | redhat |
| redhat | rhdh/rhdh-hub-rhel9:1779841586 | 2026-05-27 | redhat |
| redhat | openshift-service-mesh/kiali-ossmc-rhel8:1778191473 | 2026-05-12 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| dompurify | — | 3.4.0 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 9× in last 7d / 37× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 109 total refreshes for this CVE.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-14 12:20 UTCEG score recompute
- 2026-06-14 12:20 UTCVendor advisory
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-11 20:51 UTCEG score recompute
- 2026-06-11 20:51 UTCVendor advisory
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 23:04 UTCEG score recompute
- 2026-06-10 23:04 UTCVendor advisory
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 01:14 UTCEG score recompute
- 2026-06-10 01:14 UTCVendor advisory
- 2026-06-09 03:27 UTCEG score recompute
- 2026-06-09 03:27 UTCVendor advisory
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 04:32 UTCEG score recompute
- 2026-06-08 04:32 UTCVendor advisory
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 06:45 UTCEG score recompute
- 2026-06-07 06:45 UTCVendor advisory
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 08:55 UTCEG score recompute
- 2026-06-06 08:55 UTCVendor advisory
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 11:08 UTCEG score recompute
- 2026-06-05 11:08 UTCVendor advisory
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 12:17 UTCEG score recompute
- 2026-06-04 12:17 UTCVendor advisory
- 2026-06-03 12:13 UTCEG score recompute
- 2026-06-03 12:13 UTCVendor advisory
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 12:19 UTCEG score recompute
- 2026-06-02 12:19 UTCVendor advisory
- 2026-06-01 14:22 UTCEG score recompute
- 2026-06-01 14:22 UTCVendor advisory
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-27 13:40 UTCEPSS rescore
- 2026-05-26 13:44 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Frequently asked(5)
What is CVE-2026-41240?
When was CVE-2026-41240 disclosed?
Is CVE-2026-41240 actively exploited?
What is the CVSS score of CVE-2026-41240?
How do I remediate CVE-2026-41240?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-41240
Is Your Infrastructure Affected by CVE-2026-41240?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.