cve.bz

CVE-2026-41240 cure53 dompurify: Cross-site Scripting

6.0 mediumExploit referenceEPSS 0.3%Fix available

Medium (6.0) in cure53 dompurify. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in dompurify 3.4.0.

On this page
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.

Severity

CVSS 4.0

6.0 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
CWE-183 Permissive List of Allowed Inputs
OWASP Top 10
A05:2025 Injection, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41240 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41240?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41240?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41240 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cure53:dompurifybefore 3.4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h7mw-gpvr-xq4mnpmdompurify<3.4.03.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-dompurifyno fix listedDEBIAN-CVE-2026-41240
Debian14node-dompurify3.4.1+dfsg-1DEBIAN-CVE-2026-41240
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morenode-dompurifyno fix listedUBUNTU-CVE-2026-41240
Red Hatansible_automation_platform:2.6::el9automation-controller, automation-controller-ui, automation-controller-cli and 2 more0:4.7.13-2.el9apRHSA-2026:34160
Red Hatansible_automation_platform:2.6::el9automation-platform-ui0:2.6.10-1.el9apRHSA-2026:34160
Red Hatansible_automation_platform:2.6::el9python3.12-pyjwt, python3.12-pyjwt+crypto0:2.13.0-1.el9apRHSA-2026:34160
Red Hatansible_automation_platform:2.6::el9python3.12-pysequoia, python3.12-pysequoia-debuginfo, python3.12-pysequoia-debugsource0:0.1.34-1.el9apRHSA-2026:34160
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9python3.12-urllib30:2.7.0-1.el9apRHSA-2026:34160
Red Hatansible_automation_platform_developer:2.6::el9automation-controller, automation-controller-cli0:4.7.13-2.el9apRHSA-2026:34160
openSUSETumbleweedargocd-cli3.4.3-1.1openSUSE-SU-2026:10888-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this vulnerability as Moderate because exploitation requires a specialized and uncommon configuration where dynamic callback functions are defined for element handling. In typical Red Hat deployments incorporating DOMPurify, web consoles and interfaces rely on default or static sanitization profiles rather than function-based tag evaluation. Furthermore, successful exploitation requires user interaction to process malicious markup, limiting the attack surface to scenarios where an authenticated victim is tricked into viewing attacker-controlled input.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-10Fixed 2026-06-22RHSA-2026:28010
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9:4.2.0-10Fixed 2026-06-22RHSA-2026:28010
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-platform-ui-0:2.6.10-1.el9apFixed 2026-07-01RHSA-2026:34160
Red Hat build of Apicurio Registry 3.3.1apicurio/apicurio-registry-ui-rhel8Fixed 2026-08-25RHSA-2026:59360
Red Hat build of Apicurio Registry 3.3.1apicurio/apicurio-registry-ui-rhel9Fixed 2026-08-25RHSA-2026:59360
Red Hat Data Grid 8.6.1dompurifyFixed 2026-06-02RHSA-2026:22619
Streams for Apache Kafka 2.9.4dompurifyFixed 2026-07-02RHSA-2026:34608
Red Hat Ceph Storage 9.2rhceph/rhceph-9-rhel10:1790843527Fixed 2026-10-21RHSA-2026:86618
Red Hat Container Native Virtualization 4.13container-native-virtualization/kubevirt-console-plugin-rhel9:1782426816Fixed 2026-07-07RHSA-2026:36108
Red Hat Container Native Virtualization 4.14container-native-virtualization/kubevirt-console-plugin-rhel9:1781807944Fixed 2026-06-22RHSA-2026:27944
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Not affected
Cryostat 4cryostat-openshift-console-plugin-npmAffected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Not affected
Migration Toolkit for Virtualizationmtv-candidate/mtv-console-plugin-rhel9Will not fix
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleNot affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorNot affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-419-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-rhel9Not affected
55 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41240.

Attack patterns (CAPEC)

  • CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters Likelihood: Medium · Severity: Medium
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-71 Using Unicode Encoding to Bypass Validation Logic Likelihood: Medium · Severity: High
  • CAPEC-120 Double Encoding Likelihood: Low · Severity: Medium
  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON