6.1

CVE-2026-140391: DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS

Awaiting analysis
AliasesDEBIAN-CVE-2026-140391GHSA-qm7q-q8h9-jg8qUBUNTU-CVE-2026-140391
Published 01-12-2026Last modified 01-12-2026

Vulnerability summary

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

Priority
Routine

Not severe (CVSS 5.1, 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.51%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 1 · Downstream 0

Timeline

  1. 01-12-2026
    PublishedVulnerability first disclosed.
  2. 01-12-2026
    Last modifiedVulnerability information updated.

Description

DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.51%

Chance of exploitation in the next 30 days

Percentile

45%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

02-12-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.

Chainguard94 products
  • airflow-2All versions (No fix recorded)
  • awxAll versions (No fix recorded)
  • gitlab-rails-ce-18.8All versions (No fix recorded)
  • gitlab-rails-ce-18.9All versions (No fix recorded)
  • gitlab-rails-ce-19.2All versions (No fix recorded)
Cure531 product
Debian1 product
  • node-dompurifyAll versions (No fix recorded)
Npm1 product
  • dompurify< 3.4.18
Ubuntu1 product
  • node-dompurifyAll versions (No fix recorded)
Wolfi1 product
  • nextcloud-server-33All versions (No fix recorded)

6 vendors · 99 products

References

8 links