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-4068 - High Severity Vulnerability
Vulnerable Libraries - braces-1.8.5.tgz, braces-2.3.2.tgz, braces-3.0.2.tgz
braces-1.8.5.tgz
Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.
Library home page: https://registry.npmjs.org/braces/-/braces-1.8.5.tgz
Path to dependency file: /aws-node-dynamic-image-resizer/package.json
Path to vulnerable library: /aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/expect/node_modules/braces/package.json,/aws-node-function-compiled-with-babel/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-jasmine2/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-config/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-environment-jsdom/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-snapshot/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-environment-node/node_modules/braces/package.json
Dependency Hierarchy: - babel-cli-6.18.0.tgz (Root Library) - chokidar-1.7.0.tgz - anymatch-1.3.2.tgz - micromatch-2.3.11.tgz - :x: **braces-1.8.5.tgz** (Vulnerable Library)
braces-2.3.2.tgz
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
Library home page: https://registry.npmjs.org/braces/-/braces-2.3.2.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/globby/node_modules/braces/package.json,/azure-node-telegram-bot/node_modules/micromatch/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/sane/node_modules/braces/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/globby/node_modules/braces/package.json,/aws-node-http-api-typescript/node_modules/globby/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/fork-ts-checker-webpack-plugin/node_modules/braces/package.json,/aws-golang-auth-examples/node_modules/globby/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/chokidar/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/sane/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/sane/node_modules/braces/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest/node_modules/anymatch/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/chokidar/node_modules/braces/package.json,/aws-node-typescript-sqs-standard/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/fast-glob/node_modules/braces/package.json,/aws-node-function-compiled-with-babel/node_modules/readdirp/node_modules/braces/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/globby/node_modules/braces/package.json,/azure-node-line-bot/node_modules/micromatch/node_modules/braces/package.json,/aws-node-typescript-apollo-lambda/node_modules/braces/package.json,/google-node-typescript-http-endpoint/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/ts-loader/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/sane/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/readdirp/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/anymatch/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runtime/node_modules/anymatch/node_modules/braces/package.json,/azure-node-line-bot/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/anymatch/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/http-proxy-middleware/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/anymatch/node_modules/braces/package.json,/aws-node-typescript-kinesis/node_modules/braces/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/micromatch/node_modules/braces/package.json,/aws-node-github-check/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/micromatch/node_modules/braces/package.json,/aws-node-typescript-nest/node_modules/readdirp/node_modules/braces/package.json,/aws-node-rest-api-typescript/node_modules/micromatch/node_modules/braces/package.json,/aws-rust-simple-http-endpoint/node_modules/globby/node_modules/braces/package.json,/aws-node-vue-nuxt-ssr/node_modules/braces/package.json,/azure-node-telegram-bot/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/jest-runner/node_modules/sane/node_modules/braces/package.json,/aws-node-signed-uploads/node_modules/braces/package.json,/aws-node-fullstack/frontend/node_modules/webpack/node_modules/braces/package.json
Dependency Hierarchy: - ts-loader-5.4.5.tgz (Root Library) - micromatch-3.1.10.tgz - :x: **braces-2.3.2.tgz** (Vulnerable Library)
braces-3.0.2.tgz
Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
Library home page: https://registry.npmjs.org/braces/-/braces-3.0.2.tgz
Path to dependency file: /aws-node-twilio-send-text-message/package.json
Path to vulnerable library: /aws-node-twilio-send-text-message/node_modules/braces/package.json,/azure-node-telegram-bot/node_modules/braces/package.json,/aws-node-fullstack/backend/node_modules/braces/package.json,/aws-node-typescript-apollo-lambda/node_modules/chokidar/node_modules/braces/package.json,/aws-golang-auth-examples/node_modules/braces/package.json,/azure-node-line-bot/node_modules/braces/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/braces/package.json,/aws-node-rest-api-typescript/node_modules/braces/package.json,/aws-node-vue-nuxt-ssr/node_modules/chokidar/node_modules/braces/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/braces/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/braces/package.json,/aws-node-dynamic-image-resizer/node_modules/braces/package.json,/aws-rust-simple-http-endpoint/node_modules/braces/package.json,/aws-node-rest-api-typescript-simple/node_modules/braces/package.json,/aws-node-signed-uploads/node_modules/chokidar/node_modules/braces/package.json,/aws-node-typescript-apollo-lambda/node_modules/fast-glob/node_modules/braces/package.json,/aws-node-typescript-kinesis/node_modules/chokidar/node_modules/braces/package.json,/aws-node-vue-nuxt-ssr/node_modules/fast-glob/node_modules/braces/package.json,/aws-node-http-api-typescript/node_modules/braces/package.json
Dependency Hierarchy: - webpack-4.41.2.tgz (Root Library) - watchpack-1.7.2.tgz - chokidar-3.4.0.tgz - :x: **braces-3.0.2.tgz** (Vulnerable Library)
Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4
Found in base branch: master
Vulnerability Details
The NPM package `braces`, versions prior to 3.0.3, fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash. Mend Note: After conducting a further research, it was concluded that CVE-2024-4068 does not contain a high security risk that reflects the NVD score, but should be kept for users' awareness. Users of braces should follow the fix recommendation as noted.
Publish Date: 2024-05-13
URL: CVE-2024-4068
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
Release Date: 2024-05-13
Fix Resolution: braces - 3.0.3
Step up your Open Source Security Game with Mend here