CVSS 4.0
5.3 mediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NMedium (5.3) in cure53 dompurify. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in dompurify 2.5.9, 3.3.2.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:Ndompurify (npm): fixed in 3.3.2, 2.5.9Explain CVE-2026-0540 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-0540?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-0540?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-0540 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| cure53 DOMPurify | from 3.1.3 through 3.3.1 |
| cure53 DOMPurify | from 2.5.3 through 2.5.8 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-v2wj-7wpq-c8vv | npm | dompurify | >=3.1.3 <3.3.2 | 3.3.2 |
| GHSA-v2wj-7wpq-c8vv | npm | dompurify | >=2.5.3 <2.5.9 | 2.5.9 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | node-dompurify | no fix listed | DEBIAN-CVE-2026-0540 |
| Debian | 14 | node-dompurify | 3.3.2+dfsg-1 | DEBIAN-CVE-2026-0540 |
| Ubuntu | 22.04:LTS, 24.04:LTS, 25.10 and 2 more | node-dompurify | no fix listed | UBUNTU-CVE-2026-0540 |
| openSUSE | Tumbleweed | cacti | 1.2.30+git306.82d5aef5-1.1 | openSUSE-SU-2026:10599-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.
Red Hat rates this Moderate.
A moderate cross-site scripting (XSS) flaw was found in DOMPurify, an HTML sanitization library shipped in multiple Red Hat products, including Red Hat 3scale API Management Platform, Red Hat Ansible Automation Platform, Red Hat AMQ, OpenShift Virtualization console plugins, Cluster Observability Operator, and Cryostat. The SAFE_FOR_XML regex in DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8 does not account for five rawtext elements (noscript, xmp, noembed, noframes, and iframe). An attacker can bypass attribute sanitization by placing payloads such as "</noscript><img src=x onerror=alert(1)>" inside attribute values; when the sanitized output is rendered inside one of these unprotected rawtext contexts, the injected markup is parsed as HTML and the attacker's JavaScript executes in the victim's browser. Exploitation requires an application to place DOMPurify-sanitized output inside such a rawtext element context and requires user interaction, which limits the attack surface. The Red Hat severity (Moderate, CVSS:3.1 6.1, AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) matches the upstream rating. Fixes for the affected Red Hat product streams are currently deferred; until a fixed DOMPurify is delivered, applications that render DOMPurify-sanitized content inside noscript, xmp, noembed, noframes, or iframe elements remain exposed to this sanitization bypass. For community-distributed components, handling is delegated to the community, which is pursuing fixes where affected.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ceph Storage 9.2 | rhceph/rhceph-9-rhel10:1790843527 | Fixed 2026-10-21 | RHSA-2026:86618 |
| Cryostat 4 | io.cryostat-cryostat | Fix deferred | |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-console-plugin-rhel9 | Fix deferred | |
| Migration Toolkit for Virtualization | mtv-candidate/mtv-console-plugin-rhel9 | Fix deferred | |
| Multicluster Engine for Kubernetes | multicluster-engine/console-mce-rhel9 | Fix deferred | |
| Network Observability Operator | network-observability/network-observability-console-plugin-compat-rhel9 | Fix deferred | |
| Node HealthCheck Operator | workload-availability/node-healthcheck-must-gather-rhel9 | Fix deferred | |
| Node HealthCheck Operator | workload-availability/node-healthcheck-operator-bundle | Fix deferred | |
| Node HealthCheck Operator | workload-availability/node-healthcheck-rhel9-operator | Fix deferred | |
| Node HealthCheck Operator | workload-availability/node-remediation-console-rhel9 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-db-migration-rhel8 | Fix deferred | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel8 | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp20/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp24/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp25/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp26/system | Fix deferred | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel7 | Fix deferred | |
| 35 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-0540.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.