parse-duration@1.0.3 vulnerabilities

Convert a human readable duration string to a duration format

  • latest version

    2.1.4

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    7 months ago

  • licenses detected

  • Direct Vulnerabilities

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