parse-duration@2.1.0 vulnerabilities

Convert a human readable duration string to a duration format

  • latest version

    2.1.3

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    20 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the parse-duration 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)

    parse-duration is a package that converts a human readable duration to ms.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). An attacker could cause an event loop delay or trigger an out of memory error that would crash a running Node.js application by supplying excessively large strings.

    Note:

    The out of memory crash can only be achieved if a large amount of data (e.g. 200MB) is sent over a network so it is unlikely to affect common application usage.

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

    Upgrade parse-duration to version 2.1.3 or higher.

    <2.1.3