6.1

CVE-2026-0540: DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML

Modified
AliasesUBUNTU-CVE-2026-0540DEBIAN-CVE-2026-0540CGA-3jf7-rpf8-xm8h
Published 03-03-2026Last modified 25-03-2026

Vulnerability summary

CVE-2026-0540 is a medium (CVSS 6.1) vulnerability in cure53 dompurify. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 34.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.38%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 03-03-2026
    PublishedVulnerability first disclosed.
  2. 25-03-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

11 scores · 7 sources · 2 versions

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

34%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 0.39% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard90 products
  • airflow-2All versions (No fix recorded)
  • airflow-core-2All versions (No fix recorded)
  • gitlab-rails-ce-18.1All versions (No fix recorded)
  • gitlab-rails-ce-18.5All versions (No fix recorded)
  • gitlab-rails-ce-18.6All versions (No fix recorded)
Wolfi15 products
  • langfuse-3< 3.160.0-r1
  • langfuse-3-worker< 3.160.0-r1
  • opensearch-dashboards-3< 3.5.0-r6
  • opensearch-dashboards-3-alerting-dashboards-plugin< 3.5.0-r6
  • opensearch-dashboards-3-anomaly-detection-dashboards-plugin< 3.5.0-r6
Cure531 product
  • dompurify≥ 2.5.3, ≤ 2.5.8 | ≥ 3.1.3, ≤ 3.3.1
Debian1 product
  • node-dompurifyAll versions (No fix recorded) | < 3.3.2+dfsg-1
Npm1 product
  • dompurify≥ 3.1.3, < 3.3.2 | ≥ 2.5.3, < 2.5.9
Opensuse1 product
  • cacti&distro=openSUSE Tumbleweed< 1.2.30+git306.82d5aef5-1.1
Ubuntu1 product
  • node-dompurifyAll versions (No fix recorded)

7 vendors · 110 products

References

12 links
Show all 12 references