prismjs@1.27.0 vulnerabilities

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

  • latest version

    1.30.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    11 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the prismjs 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
    • L
    Arbitrary Code Injection

    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 prismjs to version 1.30.0 or higher.

    <1.30.0