CVE-2026-49978
DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content
Description
If the HTML you give it contains a <template> element, and inside that template there's an element with a shadow DOM attached to it, DOMPurify quietly skips over the shadow contents. Whatever the attacker put in there - an image with an onerror handler, a link with a javascript: URL, even a full script - survives untouched. The moment the application uses that template the way templates are meant to be used (cloning it and inserting the result into the page), the malicious payload comes along and runs as if it had never been sanitized. From there an attacker gets everything XSS normally gets them: session cookies, stored tokens, the ability to act as the user, and the ability to leave persistent payloads behind for the next person who visits.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » dompurifyvia npm dompurify | < 3.4.7 | 3.4.7 |
| org.webjars.npm » dompurifyvia npm dompurify | < 3.4.7 | 3.4.7 |
Blast radius
33% of the dependent artifacts (17) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 198 |
| 2 hops | 578 |
| 3 hops | 429 |
| 4 hops | 130 |
| 5 hops | 120 |
Most used dependents
- org.mvnpm.at.bigbinary » neeto-commons-frontend14 usages
- org.webjars.npm » monaco-editor9 usages
- org.eclipse.dirigible » dirigible-components-ui-editor-monaco8 usages
- org.eclipse.dirigible » dirigible-components-ui-view-sql8 usages
- org.eclipse.dirigible » dirigible-components-group-ide7 usages
- org.mvnpm » monaco-editor7 usages
- org.mvnpm.at.bigbinary » neeto-atoms7 usages
- org.mvnpm.at.bigbinary » neeto-molecules6 usages
- org.mvnpm.at.bigbinary » neeto-filters-frontend6 usages
- org.mvnpm » mermaid5 usages
- org.mvnpm.at.bigbinary » neeto-team-members-frontend4 usages
- org.mvnpm.at.bigbinary » neeto-image-uploader-frontend4 usages
- org.mvnpm.at.bigbinary » neeto-editor4 usages
- org.mvnpm.at.lwrjs » core4 usages
- org.mvnpm.at.locker » html-sanitizer3 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Package | cure53/DOMPurify | github.com |
| Web | cure53/DOMPurify advisory GHSA-rp9w-3fw7-7cwq | github.com |
