AlexRogalskiy / kotlin-patterns

🏆 Kotlin4You Design patterns
https://alexander-rogalsky.gitbook.io/kotlin-patterns/
GNU General Public License v3.0
4 stars 0 forks source link

CVE-2021-43307 (High) detected in semver-regex-1.0.0.tgz #355

Open mend-bolt-for-github[bot] opened 2 years ago

mend-bolt-for-github[bot] commented 2 years ago

CVE-2021-43307 - High Severity Vulnerability

Vulnerable Library - semver-regex-1.0.0.tgz

Regular expression for matching semver versions

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

Path to dependency file: /package.json

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

Dependency Hierarchy: - validate-commit-msg-2.14.0.tgz (Root Library) - :x: **semver-regex-1.0.0.tgz** (Vulnerable Library)

Found in HEAD commit: 3486fcb6c3b18f46c01920b0b8d0dea6f23684d8

Found in base branch: master

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-02

URL: CVE-2021-43307

CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - 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

github-actions[bot] commented 2 years ago

👋 Thanks for reporting!