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

babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) #1771

Open
mend-bolt-for-github bot opened this issue Aug 5, 2024 · 4 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link
Contributor

mend-bolt-for-github bot commented Aug 5, 2024

Vulnerable Library - babel-cli-6.26.0.tgz

Path to dependency file: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/braces/package.json

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (babel-cli version) Remediation Possible**
CVE-2023-45133 Critical 9.3 babel-traverse-6.26.0.tgz Transitive N/A*
CVE-2024-4068 High 7.5 detected in multiple dependencies Transitive N/A*
CVE-2022-46175 High 7.1 json5-0.5.1.tgz Transitive N/A*
CVE-2024-4067 Medium 5.3 detected in multiple dependencies Transitive N/A*
CVE-2020-28469 Medium 5.3 glob-parent-2.0.0.tgz Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2023-45133

Vulnerable Library - babel-traverse-6.26.0.tgz

The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes

Library home page: https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz

Path to dependency file: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/babel-traverse/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • babel-core-6.26.3.tgz
      • babel-traverse-6.26.0.tgz (Vulnerable Library)

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Found in base branch: main

Vulnerability Details

Babel is a compiler for writingJavaScript. In @babel/traverse prior to versions 7.23.2 and 8.0.0-alpha.4 and all versions of babel-traverse, using Babel to compile code that was specifically crafted by an attacker can lead to arbitrary code execution during compilation, when using plugins that rely on the path.evaluate()or path.evaluateTruthy() internal Babel methods. Known affected plugins are @babel/plugin-transform-runtime; @babel/preset-env when using its useBuiltIns option; and any "polyfill provider" plugin that depends on @babel/helper-define-polyfill-provider, such as babel-plugin-polyfill-corejs3, babel-plugin-polyfill-corejs2, babel-plugin-polyfill-es-shims, babel-plugin-polyfill-regenerator. No other plugins under the @babel/ namespace are impacted, but third-party plugins might be. Users that only compile trusted code are not impacted. The vulnerability has been fixed in @babel/[email protected] and @babel/[email protected]. Those who cannot upgrade @babel/traverse and are using one of the affected packages mentioned above should upgrade them to their latest version to avoid triggering the vulnerable code path in affected @babel/traverse versions: @babel/plugin-transform-runtime v7.23.2, @babel/preset-env v7.23.2, @babel/helper-define-polyfill-provider v0.4.3, babel-plugin-polyfill-corejs2 v0.4.6, babel-plugin-polyfill-corejs3 v0.8.5, babel-plugin-polyfill-es-shims v0.10.0, babel-plugin-polyfill-regenerator v0.5.3.

Publish Date: 2023-10-12

URL: CVE-2023-45133

CVSS 3 Score Details (9.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-67hx-6x53-jw92

Release Date: 2023-10-12

Fix Resolution: @babel/traverse - 7.23.2

Step up your Open Source Security Game with Mend here

CVE-2024-4068

Vulnerable Libraries - braces-2.3.2.tgz, braces-1.8.5.tgz

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: /blockchain_integration/pi_network/PiSure/client/package.json

Path to vulnerable library: /blockchain_integration/pi_network/PiSure/client/node_modules/http-proxy-middleware/node_modules/braces/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/sane/node_modules/braces/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/webpack-dev-server/node_modules/braces/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/webpack/node_modules/braces/package.json,/blockchain_integration/pi_network/SpacePi/node_modules/readdirp/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/sane/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/watchpack-chokidar2/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/http-proxy-middleware/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/webpack-dev-server/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/webpack/node_modules/braces/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/fork-ts-checker-webpack-plugin/node_modules/braces/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/fork-ts-checker-webpack-plugin/node_modules/braces/package.json,/blockchain_integration/pi_network/SpacePi/node_modules/sane/node_modules/braces/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • chokidar-1.7.0.tgz
      • readdirp-2.2.1.tgz
        • micromatch-3.1.10.tgz
          • braces-2.3.2.tgz (Vulnerable Library)

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: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/braces/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • chokidar-1.7.0.tgz
      • anymatch-1.3.2.tgz
        • micromatch-2.3.11.tgz
          • braces-1.8.5.tgz (Vulnerable Library)

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Found in base branch: main

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

CVE-2022-46175

Vulnerable Library - json5-0.5.1.tgz

JSON for the ES5 era.

Library home page: https://registry.npmjs.org/json5/-/json5-0.5.1.tgz

Path to dependency file: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/babel-core/node_modules/json5/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • babel-core-6.26.3.tgz
      • json5-0.5.1.tgz (Vulnerable Library)

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Found in base branch: main

Vulnerability Details

JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for config files). The parse method of the JSON5 library before and including versions 1.0.1 and 2.2.1 does not restrict parsing of keys named __proto__, allowing specially crafted strings to pollute the prototype of the resulting object. This vulnerability pollutes the prototype of the object returned by JSON5.parse and not the global Object prototype, which is the commonly understood definition of Prototype Pollution. However, polluting the prototype of a single object can have significant security impact for an application if the object is later used in trusted operations. This vulnerability could allow an attacker to set arbitrary and unexpected keys on the object returned from JSON5.parse. The actual impact will depend on how applications utilize the returned object and how they filter unwanted keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme cases, remote code execution. JSON5.parse should restrict parsing of __proto__ keys when parsing JSON strings to objects. As a point of reference, the JSON.parse method included in JavaScript ignores __proto__ keys. Simply changing JSON5.parse to JSON.parse in the examples above mitigates this vulnerability. This vulnerability is patched in json5 versions 1.0.2, 2.2.2, and later.

Publish Date: 2022-12-24

URL: CVE-2022-46175

CVSS 3 Score Details (7.1)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2022-46175

Release Date: 2022-12-24

Fix Resolution: json5 - 2.2.2

Step up your Open Source Security Game with Mend here

CVE-2024-4067

Vulnerable Libraries - micromatch-2.3.11.tgz, micromatch-3.1.10.tgz

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: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/micromatch/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • chokidar-1.7.0.tgz
      • anymatch-1.3.2.tgz
        • micromatch-2.3.11.tgz (Vulnerable Library)

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: /blockchain_integration/pi_network/PiSure/client/package.json

Path to vulnerable library: /blockchain_integration/pi_network/PiSure/client/node_modules/http-proxy-middleware/node_modules/micromatch/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/webpack/node_modules/micromatch/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/fork-ts-checker-webpack-plugin/node_modules/micromatch/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/sane/node_modules/micromatch/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/webpack-dev-server/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/webpack-dev-server/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/webpack/node_modules/micromatch/package.json,/blockchain_integration/pi_network/SpacePi/node_modules/readdirp/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/watchpack-chokidar2/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/http-proxy-middleware/node_modules/micromatch/package.json,/blockchain_integration/pi_network/SpacePi/node_modules/sane/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/fork-ts-checker-webpack-plugin/node_modules/micromatch/package.json,/blockchain_integration/pi_network/PiSure/client/node_modules/watchpack-chokidar2/node_modules/micromatch/package.json,/blockchain_integration/pi_network/pi-browser-app/node_modules/sane/node_modules/micromatch/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • chokidar-1.7.0.tgz
      • readdirp-2.2.1.tgz
        • micromatch-3.1.10.tgz (Vulnerable Library)

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Found in base branch: main

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

CVE-2020-28469

Vulnerable Library - glob-parent-2.0.0.tgz

Strips glob magic from a string to provide the parent path

Library home page: https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz

Path to dependency file: /blockchain_integration/pi_network/SpacePi/package.json

Path to vulnerable library: /blockchain_integration/pi_network/SpacePi/node_modules/glob-parent/package.json

Dependency Hierarchy:

  • babel-cli-6.26.0.tgz (Root Library)
    • chokidar-1.7.0.tgz
      • glob-parent-2.0.0.tgz (Vulnerable Library)

Found in HEAD commit: 011e5f9d5ce310049a1a68c19f7df65be4f88caf

Found in base branch: main

Vulnerability Details

This affects the package glob-parent before 5.1.2. The enclosure regex used to check for strings ending in enclosure containing path separator.

Publish Date: 2021-06-03

URL: CVE-2020-28469

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

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28469

Release Date: 2021-06-03

Fix Resolution: glob-parent - 5.1.2

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 Mend label Aug 5, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 2 vulnerabilities (highest severity is: 7.5) babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) Aug 5, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) - autoclosed Aug 12, 2024
Copy link
Contributor Author

✔️ 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.

@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) - autoclosed babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) Aug 12, 2024
Copy link
Contributor Author

ℹ️ This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 8.8) babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) Sep 8, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) babel-cli-6.26.0.tgz: 6 vulnerabilities (highest severity is: 9.3) Nov 13, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 6 vulnerabilities (highest severity is: 9.3) babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) Nov 18, 2024
Copy link
Contributor Author

✔️ 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.

@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) - autoclosed Dec 2, 2024
@mend-bolt-for-github mend-bolt-for-github bot changed the title babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) - autoclosed babel-cli-6.26.0.tgz: 5 vulnerabilities (highest severity is: 9.3) Dec 2, 2024
@mend-bolt-for-github mend-bolt-for-github bot reopened this Dec 2, 2024
Copy link
Contributor Author

ℹ️ This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

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 Mend
Projects
None yet
Development

No branches or pull requests

0 participants