Cross-site Scripting (XSS) Affecting org.webjars.bower:dompurify package, versions (,0.8.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGWEBJARSBOWER-479629
  • published24 Apr 2017
  • disclosed21 Apr 2017
  • creditUnknown

Introduced: 21 Apr 2017

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade dompurify to version 0.8.6 or higher.

Overview

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

Affected versions of this package are vulnerable to a Cross-site Scripting (XSS) bug in Safari (>= versions 10.1). Specifically, when DOMPurify attempts to parse a string like:

<svg onload=alert(document.domain)>

it will result in XSS.

Details

<>

CVSS Scores

version 3.1