Open mend-bolt-for-github[bot] opened 2 years ago
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.
CVE-2021-43307 - Medium Severity Vulnerability
Vulnerable Libraries - semver-regex-1.0.0.tgz, semver-regex-2.0.0.tgz
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: /aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Lambda/package.json
Path to vulnerable library: /aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Lambda/node_modules/semver-regex/package.json,/aws-node-oauth-dropbox-api/node_modules/semver-regex/package.json,/aws-node-signed-uploads/node_modules/semver-regex/package.json
Dependency Hierarchy: - serverless-1.27.3.tgz (Root Library) - :x: **semver-regex-1.0.0.tgz** (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: /aws-golang-auth-examples/package.json
Path to vulnerable library: /aws-golang-auth-examples/node_modules/semver-regex/package.json,/aws-node-rest-api-typescript-simple/node_modules/semver-regex/package.json,/aws-rust-simple-http-endpoint/node_modules/semver-regex/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/semver-regex/package.json,/aws-node-http-api-typescript/node_modules/semver-regex/package.json,/aws-node-dynamic-image-resizer/node_modules/semver-regex/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/semver-regex/package.json,/aws-node-typescript-apollo-lambda/node_modules/semver-regex/package.json
Dependency Hierarchy: - serverless-1.83.3.tgz (Root Library) - :x: **semver-regex-2.0.0.tgz** (Vulnerable Library)
Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4
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-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
Direct dependency fix Resolution (serverless): 2.0.0-264b9b2d
Fix Resolution (semver-regex): 3.1.4
Direct dependency fix Resolution (serverless): 2.0.0-264b9b2d
Step up your Open Source Security Game with Mend here