org.webjars.npm:prismjs@1.26.0 vulnerabilities

  • latest version

    1.30.0

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    3 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:prismjs 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
    • L
    Arbitrary Code Injection

    org.webjars.npm:prismjs is a lightweight, robust, elegant syntax highlighting library.

    Affected versions of this package are vulnerable to Arbitrary Code Injection via the document.currentScript lookup process. An attacker can manipulate the web page content and execute unintended actions by injecting HTML elements that overshadow legitimate DOM elements.

    Note:

    This is only exploitable if the application accepts untrusted input containing HTML but not direct JavaScript.

    How to fix Arbitrary Code Injection?

    Upgrade org.webjars.npm:prismjs to version 1.30.0 or higher.

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

    org.webjars.npm:prismjs is a lightweight, robust, elegant syntax highlighting library.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the command line plugin which does not properly escape its output, leading to the input text being inserted into the DOM as HTML code.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.npm:prismjs to version 1.27.0 or higher.

    [1.14.0,1.27.0)