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…
中危 CVSS 4.7
摘要
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.
中文摘要建设中,暂以英文摘要呈现(DR-003 v2)。
深度研判 · 自动通道
该漏洞尚未生成深度研判报告(DR-003 v2 AI pipeline 建设中)。
受影响产品
- :
数据来源
- NVD DATABASE
原始链接
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934 Exploit
- https://www.vulncheck.com/advisories/dompurify-before-cross-site-scripting-via-in-place-mode Third Party Advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934 Exploit
时间线
- nvd_ingest NVD