cve.bz

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

5.3 mediumEPSS 0.4%Fix available

Medium (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.

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

Severity

CVSS 4.0

5.3 medium
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

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.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-03-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
cure53 DOMPurifyfrom 3.1.3 through 3.3.1
cure53 DOMPurifyfrom 2.5.3 through 2.5.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v2wj-7wpq-c8vvnpmdompurify>=3.1.3 <3.3.23.3.2
GHSA-v2wj-7wpq-c8vvnpmdompurify>=2.5.3 <2.5.92.5.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-dompurifyno fix listedDEBIAN-CVE-2026-0540
Debian14node-dompurify3.3.2+dfsg-1DEBIAN-CVE-2026-0540
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morenode-dompurifyno fix listedUBUNTU-CVE-2026-0540
openSUSETumbleweedcacti1.2.30+git306.82d5aef5-1.1openSUSE-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

Red Hat rates this Moderate.

Red Hat's statement

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.

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
Red Hat Ceph Storage 9.2rhceph/rhceph-9-rhel10:1790843527Fixed 2026-10-21RHSA-2026:86618
Cryostat 4io.cryostat-cryostatFix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Fix deferred
Migration Toolkit for Virtualizationmtv-candidate/mtv-console-plugin-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Fix deferred
Network Observability Operatornetwork-observability/network-observability-console-plugin-compat-rhel9Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleFix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorFix deferred
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel9Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-api-rhel8Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-db-migration-rhel8Fix deferred
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Fix deferred
Red Hat 3scale API Management Platform 23scale-amp20/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp21/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp22/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp24/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp25/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp26/systemFix deferred
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Fix 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.

Attack patterns (CAPEC)

  • 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