org.webjars.npm:dompurify@3.1.0 vulnerabilities

  • latest version

    3.2.1

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    org.webjars.npm: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)?

    Upgrade org.webjars.npm:dompurify to version 2.5.0, 3.1.3 or higher.

    [,2.5.0)[3.0.0,3.1.3)
    • H
    Prototype Pollution

    org.webjars.npm: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?

    Upgrade org.webjars.npm:dompurify to version 2.5.6, 3.1.4 or higher.

    [,2.5.6)[3.0.0,3.1.4)