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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-49978— DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content

AI Predicted 7.5 Difficulty: Easy EPSS 0.33% · P26

Affected Version Matrix 1

VendorProductVersion RangeStatus
cure53DOMPurify< 3.4.6affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-49978

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 IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content
Source: CVE Program / CVE List V5
Vulnerability Description
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
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.4.7之前版本存在跨站脚本漏洞,该漏洞源于IN_PLACE清理过程中可能跳过<template>.content内元素附加的阴影内容,导致攻击者控制的事件处理程序、JavaScript URL或脚本在应用程序克隆并插入已清理模板时存活并执行。
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

VendorProductAffected VersionsCPESubscribe
cure53DOMPurify < 3.4.6 -

II. Public POCs for CVE-2026-49978

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-49978

登录查看更多情报信息。

Vendor Advisories for CVE-2026-49978 (1)

Vendor Pages for CVE-2026-49978 (1)

Same Patch Batch · cure53 · 2026-07-14 · 4 CVEs total

CVE-2026-474238.2 HIGHDOMPurify XSS via `selectedcontent` re-clone
CVE-2026-494596.1 MEDIUMDOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS vi
CVE-2026-494586.1 MEDIUMDOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bou

IV. Related Vulnerabilities

V. Comments for CVE-2026-49978

No comments yet


Leave a comment