Open mend-bolt-for-github[bot] opened 6 months 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-2024-4067 - Medium Severity Vulnerability
Vulnerable Libraries - micromatch-3.1.10.tgz, micromatch-4.0.2.tgz, micromatch-4.0.4.tgz, micromatch-2.3.11.tgz
micromatch-3.1.10.tgz
Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.
Library home page: https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz
Path to dependency file: /google-node-typescript-http-endpoint/package.json
Path to vulnerable library: /google-node-typescript-http-endpoint/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/http-proxy-middleware/node_modules/micromatch/package.json,/aws-rust-simple-http-endpoint/node_modules/globby/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/sane/node_modules/micromatch/package.json,/azure-node-line-bot/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/sane/node_modules/micromatch/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/micromatch/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/globby/node_modules/micromatch/package.json,/aws-node-typescript-sqs-standard/node_modules/micromatch/package.json,/aws-node-vue-nuxt-ssr/node_modules/micromatch/package.json,/azure-node-telegram-bot/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/anymatch/node_modules/micromatch/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/globby/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/sane/node_modules/micromatch/package.json,/aws-node-typescript-nest/node_modules/anymatch/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/readdirp/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/webpack/node_modules/micromatch/package.json,/aws-node-typescript-kinesis/node_modules/micromatch/package.json,/aws-node-typescript-nest/node_modules/readdirp/node_modules/micromatch/package.json,/aws-node-rest-api-typescript-simple/node_modules/globby/node_modules/micromatch/package.json,/aws-golang-auth-examples/node_modules/globby/node_modules/micromatch/package.json,/aws-node-function-compiled-with-babel/node_modules/readdirp/node_modules/micromatch/package.json,/aws-node-rest-api-typescript/node_modules/micromatch/package.json,/aws-node-github-check/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/anymatch/node_modules/micromatch/package.json,/aws-node-signed-uploads/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/anymatch/node_modules/micromatch/package.json,/aws-node-typescript-apollo-lambda/node_modules/micromatch/package.json,/aws-node-typescript-nest/node_modules/ts-loader/node_modules/micromatch/package.json,/aws-node-http-api-typescript/node_modules/globby/node_modules/micromatch/package.json,/aws-node-typescript-nest/node_modules/sane/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/fast-glob/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/sane/node_modules/micromatch/package.json,/aws-node-fullstack/frontend/node_modules/fork-ts-checker-webpack-plugin/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/anymatch/node_modules/micromatch/package.json
Dependency Hierarchy: - ts-loader-5.4.5.tgz (Root Library) - :x: **micromatch-3.1.10.tgz** (Vulnerable Library)
micromatch-4.0.2.tgz
Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
Library home page: https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz
Path to dependency file: /azure-node-typescript-servicebus-trigger-endpoint/package.json
Path to vulnerable library: /azure-node-typescript-servicebus-trigger-endpoint/node_modules/jest-util/node_modules/micromatch/package.json,/aws-node-typescript-apollo-lambda/node_modules/fast-glob/node_modules/micromatch/package.json
Dependency Hierarchy: - ts-jest-26.4.3.tgz (Root Library) - jest-util-26.6.1.tgz - :x: **micromatch-4.0.2.tgz** (Vulnerable Library)
micromatch-4.0.4.tgz
Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
Library home page: https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz
Path to dependency file: /aws-node-rest-api-typescript-simple/package.json
Path to vulnerable library: /aws-node-rest-api-typescript-simple/node_modules/micromatch/package.json,/aws-node-vue-nuxt-ssr/node_modules/fast-glob/node_modules/micromatch/package.json,/aws-node-fullstack/backend/node_modules/micromatch/package.json,/aws-golang-auth-examples/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/fast-glob/node_modules/micromatch/package.json,/aws-rust-simple-http-endpoint/node_modules/micromatch/package.json,/aws-node-http-api-typescript/node_modules/micromatch/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/micromatch/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/micromatch/package.json
Dependency Hierarchy: - nuxt-2.15.8.tgz (Root Library) - cli-2.15.8.tgz - globby-11.0.4.tgz - fast-glob-3.2.7.tgz - :x: **micromatch-4.0.4.tgz** (Vulnerable Library)
micromatch-2.3.11.tgz
Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.
Library home page: https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz
Path to dependency file: /aws-node-fullstack/frontend/package.json
Path to vulnerable library: /aws-node-fullstack/frontend/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-environment-node/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-snapshot/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/expect/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-environment-jsdom/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-config/node_modules/micromatch/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-jasmine2/node_modules/micromatch/package.json,/aws-node-typescript-nest/node_modules/micromatch/package.json,/aws-node-function-compiled-with-babel/node_modules/micromatch/package.json
Dependency Hierarchy: - babel-cli-6.18.0.tgz (Root Library) - chokidar-1.7.0.tgz - anymatch-1.3.2.tgz - :x: **micromatch-2.3.11.tgz** (Vulnerable Library)
Found in base branch: master
Vulnerability Details
The NPM package `micromatch` prior to 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in `micromatch.braces()` in `index.js` because the pattern `.*` will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persists. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching. This issue was fixed in version 4.0.8. Mend Note: After conducting a further research, it was concluded that CVE-2024-4067 should not reflect the security risk score in NVD, but will be kept for users' awareness.
Publish Date: 2024-05-13
URL: CVE-2024-4067
CVSS 3 Score Details (5.3)
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: Low
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Release Date: 2024-05-13
Fix Resolution: micromatch - 4.0.8
Step up your Open Source Security Game with Mend here