6.1

CVE-2026-41240: DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)

Analyzed
AliasesUBUNTU-CVE-2026-41240DEBIAN-CVE-2026-41240CGA-9g7h-qj9p-4pgw
Published 23-04-2026Last modified 23-04-2026

Vulnerability summary

CVE-2026-41240 is a medium (CVSS 6.1) vulnerability in cure53 dompurify. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 24.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 6, 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 (NVD)
EPSS score
0.31%
0%100%
Low · -0.09 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 23-04-2026
    PublishedVulnerability first disclosed.
  2. 23-04-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

9 scores · 7 sources · 2 versions

EPSS trend

Probability

0.31%

Chance of exploitation in the next 30 days

Percentile

24%

Versus all other CVEs

30-day change

Decrease -0.09 pp

From 0.40% on 04-10-2026

04-10-202603-11-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

1 found
  • githubUnverified

    Dompurify

    Maturity: poc

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.

Chainguard35 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.10All versions (No fix recorded)
  • gitlab-rails-ce-18.11All versions (No fix recorded)
Wolfi2 products
  • nextcloud-server-33< 33.0.6-r0
  • opensearch-dashboards-3< 3.6.0-r3
Cure531 product
Debian1 product
  • node-dompurifyAll versions (No fix recorded) | < 3.4.1+dfsg-1
Npm1 product
  • dompurify< 3.4.0
Opensuse1 product
  • argocd-cli&distro=openSUSE Tumbleweed< 3.4.3-1.1
Ubuntu1 product
  • node-dompurifyAll versions (No fix recorded)

7 vendors · 42 products

References

10 links