org.webjars.bower:dompurify@0.7.3 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.webjars.bower:dompurify package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • C
Prototype Pollution

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

Affected versions of this package are vulnerable to Prototype Pollution due to improper checks of the properties during the HTML sanitization process.

How to fix Prototype Pollution?

A fix was pushed into the master branch but not yet published.

[0,)
  • M
Cross-site Scripting (XSS)

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the improper sanitization of nested HTML elements in the createDOMPurify function when traversing deeply nested elements. This can be triggered by passing malicious inputs to the sanitize() function without checking their depth.

How to fix Cross-site Scripting (XSS)?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • H
Prototype Pollution

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

Affected versions of this package are vulnerable to Prototype Pollution due to improper user input sanitization through the depth-checking mechanism, an attacker can exploit this vulnerability by using special nesting techniques to create a malicious HTML file.

How to fix Prototype Pollution?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • M
Template Injection

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

Affected versions of this package are vulnerable to Template Injection in purify.js, due to inconsistencies in the parsing of XML and HTML tags. Executable code can be injected in HTML inside XML CDATA blocks.

How to fix Template Injection?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • M
Cross-site Scripting (XSS)

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). This is due to a bypass of a previous XSS vulnerability.

How to fix Cross-site Scripting (XSS)?

A fix was pushed into the master branch but not yet published.

[0,)
  • M
Cross-site Scripting (XSS)

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) when converting from SVG namespace.

How to fix Cross-site Scripting (XSS)?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • M
Cross-site Scripting (XSS)

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). This occurs because a serialize-parse roundtrip does not necessarily return the original DOM tree, and a namespace can change from HTML to MathML, as demonstrated by nesting of FORM elements.

How to fix Cross-site Scripting (XSS)?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • C
Cross-site Scripting (XSS)

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

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via innerHTML mutation XSS (mXSS) for an SVG element or a MATH element, as demonstrated by Chrome and Safari.

How to fix Cross-site Scripting (XSS)?

There is no fixed version for org.webjars.bower:dompurify.

[0,)
  • M
Cross-site Scripting (XSS)

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.

How to fix Cross-site Scripting (XSS)?

Upgrade dompurify to version 0.8.6 or higher.

[,0.8.6)
  • M
Cross-site Scripting (XSS)

dompurify is a DOM-only XSS sanitizer for HTML, MathML and SVG. Affected versions of the package are vulnerable to Cross-site Scripting (XSS) attacks. SVG tags are case sensitive, but DOMPurify transforms these tags to lowercase. This causes the SVG document to render incorrectly, and may trigger a flaw in the Opera browser.

How to fix Cross-site Scripting (XSS)?

Upgrade dompurify to version 0.8.0 or higher.

[0.7.3,0.8.0)