org.webjars.bowergithub.acornjs:acorn@2.7.0 vulnerabilities

  • latest version

    8.7.0

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    3 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.bowergithub.acornjs:acorn 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
    • H
    Regular Expression Denial of Service (ReDoS)

    org.webjars.bowergithub.acornjs:acorn is a tiny, fast JavaScript parser written in JavaScript.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via a regex in the form of /[x-\ud800]/u, which causes the parser to enter an infinite loop.

    This string is not a valid UTF16 and is therefore not sanitized before reaching the parser. An application which processes untrusted input and passes it directly to acorn, will allow attackers to leverage the vulnerability leading to a Denial of Service.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.webjars.bowergithub.acornjs:acorn to version 8.7.0 or higher.

    [,8.7.0)