Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-43307 (Medium) detected in semver-regex-2.0.0.tgz #56

Open
mend-bolt-for-github bot opened this issue Jun 8, 2022 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

mend-bolt-for-github bot commented Jun 8, 2022

CVE-2021-43307 - Medium Severity Vulnerability

Vulnerable Library - semver-regex-2.0.0.tgz

Regular expression for matching semver versions

Library home page: https://registry.npmjs.org/semver-regex/-/semver-regex-2.0.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/semver-regex/package.json

Dependency Hierarchy:

  • gulp-imagemin-7.1.0.tgz (Root Library)
    • imagemin-gifsicle-7.0.0.tgz
      • gifsicle-5.0.0.tgz
        • bin-wrapper-4.1.0.tgz
          • bin-version-check-4.0.0.tgz
            • bin-version-3.1.0.tgz
              • find-versions-3.2.0.tgz
                • semver-regex-2.0.0.tgz (Vulnerable Library)

Found in HEAD commit: c696f843563ded54e4831fe89b5e3f25e9a063eb

Found in base branch: main

Vulnerability Details

An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method

Publish Date: 2022-06-01

URL: CVE-2021-43307

CVSS 3 Score Details (5.9)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://research.jfrog.com/vulnerabilities/semver-regex-redos-xray-211349/

Release Date: 2022-06-02

Fix Resolution: semver-regex - 3.1.4,4.0.3


Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Jun 8, 2022
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2021-43307 (Medium) detected in semver-regex-2.0.0.tgz CVE-2021-43307 (High) detected in semver-regex-2.0.0.tgz Jun 19, 2022
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2021-43307 (High) detected in semver-regex-2.0.0.tgz CVE-2021-43307 (Medium) detected in semver-regex-2.0.0.tgz Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants