dirty-json@0.5.0 vulnerabilities

A permissive parser for dirty JSON data that does its best

  • latest version

    0.9.2

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the dirty-json 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)

    dirty-json is a JSON parser that tries to handle non-conforming or otherwise invalid JSON.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. It used a regular expression (/^([a-z0-9-]+,?\s*)+$/) in order toparse single and double quotes. This can cause an impact of about 10 seconds matching time for data 15 characters long.

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

    Upgrade dirty-json to version 0.5.2 or higher.

    <0.5.2