Trust Boundary Violation Affecting dompurify package, versions <3.4.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-DOMPURIFY-17344526
  • published16 Jun 2026
  • disclosed15 Jun 2026
  • creditoffset

Introduced: 15 Jun 2026

NewCVE-2026-49458  (opens in a new tab)
CWE-501  (opens in a new tab)

How to fix?

Upgrade dompurify to version 3.4.6 or higher.

Overview

dompurify is a DOM-only XSS sanitizer for HTML, MathML and SVG.

Affected versions of this package are vulnerable to Trust Boundary Violation in the sanitize function when handling DOM nodes from a different same-origin realm due to improper realm-bound instanceof checks. An attacker can inject and execute malicious markup by providing specially crafted DOM nodes from a foreign realm, which bypass internal security checks and allow executable content to persist in form attributes, template content, and attached shadow roots.

CVSS Base Scores

version 4.0
version 3.1