@jitbit/htmlsanitizer@2.0.2 vulnerabilities

Client-side (browser-based) HTML sanitizer for front end

  • latest version

    2.0.3

  • latest non vulnerable version

  • first published

    4 years ago

  • latest version published

    9 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @jitbit/htmlsanitizer package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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

    @jitbit/htmlsanitizer is a Client-side (browser-based) HTML sanitizer for front end

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to the improper handling of contentEditable elements. An attacker can execute arbitrary script in the context of the user's browser session by crafting malicious input that exploits the code beautifier process which runs after the initial sanitation.

    How to fix Cross-site Scripting (XSS)?

    Upgrade @jitbit/htmlsanitizer to version 2.0.3 or higher.

    <2.0.3