Improper Check for Unusual or Exceptional Conditions Affecting org.webjars.npm:dompurify package, versions [,3.4.4)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th 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-JAVA-ORGWEBJARSNPM-18307178
  • published10 Aug 2026
  • disclosed23 Jul 2026
  • creditUnknown

Introduced: 23 Jul 2026

NewCVE-2026-65904  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:dompurify to version 3.4.4 or higher.

Overview

org.webjars.npm:dompurify is a DOM-only XSS sanitizer for HTML, MathML and SVG.

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions in the IN_PLACE process when DOM elements are passed from a different window or realm, such as an iframe's contentDocument. An attacker can inject and execute arbitrary scripts by supplying a crafted DOM element from a foreign realm, which bypasses sanitization and leaves malicious payloads intact. This is only exploitable if the application uses the IN_PLACE mode with DOM elements originating from a different window or realm.

CVSS Base Scores

version 4.0
version 3.1