semver@2.0.0-alpha vulnerabilities

The semantic version parser used by npm.

  • latest version

    7.6.3

  • latest non vulnerable version

  • first published

    13 years ago

  • latest version published

    5 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    semver is a semantic version parser used by npm.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

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

    Upgrade semver to version 5.7.2, 6.3.1, 7.5.2 or higher.

    <5.7.2>=6.0.0 <6.3.1>=7.0.0 <7.5.2
    • M
    Regular Expression Denial of Service (ReDoS)

    semver is a semantic version parser used by npm.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The semver module uses regular expressions when parsing a version string. For a carefully crafted input, the time it takes to process these regular expressions is not linear to the length of the input. Since the semver module did not enforce a limit on the version string length, an attacker could provide a long string that would take up a large amount of resources, potentially taking a server down. This issue therefore enables a potential Denial of Service attack.

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

    Upgrade semver to version 4.3.2 or higher.

    <4.3.2