Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-65904— DOMPurify through 3.3.3 Cross-Site Scripting via IN_PLACE mode

Quick assessment

Affected
cure53 DOMPurify
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Cure53 DOMPurify是Cure53公司开源的一款使用JavaScript编写的,用于HTML、MathML和SVG的DOM(文档对象模型)。 cure53 DOMPurify 3.3.3及之前版本存在异常处理不当漏洞,该漏洞源于当元素来自不同窗口/域(如iframe的contentDocument)时,私有函数_isNode()中的跨域instanceof检查对外域节点返回false,导致IN_PLACE模式未能对DOM元素进行清理,最终返回未清理的元素并保留XSS有效载荷,容易受到跨站脚本攻

CVSS 4.7 · Medium EPSS 0.27% · P17

Affected Version Matrix 1

VendorProduct Version RangeStatus
cure53 DOMPurify ≤ 3.3.3 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-65904

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
DOMPurify through 3.3.3 Cross-Site Scripting via IN_PLACE mode
Source: CVE Program / CVE List V5
Vulnerability Description
DOMPurify through 3.3.3 fails to sanitize DOM elements passed via IN_PLACE mode when the element originates from a different window/realm (e.g., an iframe's contentDocument). A cross-realm instanceof check in the private _isNode() function returns false for foreign-realm nodes, causing DOMPurify to stringify the element (yielding '[object HTMLDivElement]'), silently reset IN_PLACE to false, and return the unsanitized element unchanged with any XSS payloads intact.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对因果或异常条件的不恰当检查
Source: CVE Program / CVE List V5
Vulnerability Title
cure53 DOMPurify 异常处理不当漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Cure53 DOMPurify是Cure53公司开源的一款使用JavaScript编写的,用于HTML、MathML和SVG的DOM(文档对象模型)。 cure53 DOMPurify 3.3.3及之前版本存在异常处理不当漏洞,该漏洞源于当元素来自不同窗口/域(如iframe的contentDocument)时,私有函数_isNode()中的跨域instanceof检查对外域节点返回false,导致IN_PLACE模式未能对DOM元素进行清理,最终返回未清理的元素并保留XSS有效载荷,容易受到跨站脚本攻
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
cure53 DOMPurify 0 ~ 3.3.3 -

II. Public POCs for CVE-2026-65904

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-65904

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-65904 (1)

News Coverage for CVE-2026-65904 (1)

Same Patch Batch · cure53 · 2026-07-23 · 11 CVEs total

CVE-2026-65898 7.2 HIGH DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig
CVE-2026-65899 6.1 MEDIUM DOMPurify before 3.4.9 Trusted Types Policy State Contamination
CVE-2026-65901 6.1 MEDIUM DOMPurify 3.4.6 Cross-Site Scripting via IN_PLACE nodeName
CVE-2026-65900 6.1 MEDIUM DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM
CVE-2026-65912 6.1 MEDIUM DOMPurify before 3.3.2 URI Validation Bypass via ADD_ATTR
CVE-2026-65913 6.1 MEDIUM DOMPurify before 3.3.2 Prototype Pollution via USE_PROFILES
CVE-2026-65911 6.1 MEDIUM DOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage
CVE-2026-65903 6.1 MEDIUM DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS
CVE-2026-65902 6.1 MEDIUM DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags
CVE-2026-65914 5.3 MEDIUM DOMPurify before 3.3.2 Mutation XSS via Re-Contextualization

IV. Related Vulnerabilities

V. Comments for CVE-2026-65904

No comments yet


Leave a comment