semver-regex@4.0.1 vulnerabilities

Regular expression for matching semver versions

  • latest version

    4.0.5

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the semver-regex 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
    • M
    Regular Expression Denial of Service (ReDoS)

    semver-regex is a Regular expression for matching semver versions

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper usage of regex in the semverRegex() function.

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

    Upgrade semver-regex to version 3.1.4, 4.0.3 or higher.

    <3.1.4>=4.0.0 <4.0.3