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

jest-26.6.0.tgz: 4 vulnerabilities (highest severity is: 7.5) reachable #73

Open
mend-for-github-com bot opened this issue Jan 29, 2025 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

Vulnerable Library - jest-26.6.0.tgz

Path to dependency file: /achilles-frontend/package.json

Path to vulnerable library: /baak-vizualization/node_modules/cross-spawn/package.json,/achilles-frontend/node_modules/cross-spawn/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (jest version) Remediation Possible** Reachability
CVE-2024-21538 High 7.5 cross-spawn-7.0.3.tgz Transitive N/A*

Reachable

CVE-2022-3517 High 7.5 minimatch-3.0.4.tgz Transitive N/A*

Reachable

CVE-2024-4067 Medium 5.3 micromatch-4.0.5.tgz Transitive 27.0.0

Reachable

CVE-2022-25883 Medium 5.3 semver-6.3.0.tgz Transitive N/A*

Reachable

*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-2024-21538

Vulnerable Library - cross-spawn-7.0.3.tgz

Cross platform child_process#spawn and child_process#spawnSync

Library home page: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz

Path to dependency file: /baak-vizualization/package.json

Path to vulnerable library: /baak-vizualization/node_modules/cross-spawn/package.json,/achilles-frontend/node_modules/cross-spawn/package.json

Dependency Hierarchy:

  • jest-26.6.0.tgz (Root Library)
    • core-26.6.3.tgz
      • jest-changed-files-26.6.2.tgz
        • execa-4.1.0.tgz
          • cross-spawn-7.0.3.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cross-spawn-7.0.3/lib/util/escape.js (Application)
  -> cross-spawn-7.0.3/lib/parse.js (Extension)
   -> cross-spawn-7.0.3/index.js (Extension)
    -> react-dev-utils-12.0.1/openBrowser.js (Extension)
     -> ❌ achilles-frontend-0.1.0/scripts/start.js (Vulnerable Component)

Vulnerability Details

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

Publish Date: 2024-11-08

URL: CVE-2024-21538

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://www.cve.org/CVERecord?id=CVE-2024-21538

Release Date: 2024-11-08

Fix Resolution: cross-spawn - 7.0.5

CVE-2022-3517

Vulnerable Library - minimatch-3.0.4.tgz

a glob matcher in javascript

Library home page: https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz

Path to dependency file: /baak-vizualization/package.json

Path to vulnerable library: /baak-vizualization/node_modules/minimatch/package.json,/achilles-frontend/node_modules/minimatch/package.json

Dependency Hierarchy:

  • jest-26.6.0.tgz (Root Library)
    • core-26.6.3.tgz
      • reporters-26.6.2.tgz
        • glob-7.1.6.tgz
          • minimatch-3.0.4.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

minimatch-3.0.4/minimatch.js (Application)
  -> recursive-readdir-2.2.2/index.js (Extension)
   -> react-dev-utils-12.0.1/FileSizeReporter.js (Extension)
    -> ❌ try-d3-0.1.0/scripts/build.js (Vulnerable Component)

Vulnerability Details

A vulnerability was found in the minimatch package. This flaw allows a Regular Expression Denial of Service (ReDoS) when calling the braceExpand function with specific arguments, resulting in a Denial of Service.

Publish Date: 2022-10-17

URL: CVE-2022-3517

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: 2022-10-17

Fix Resolution: minimatch - 3.0.5

CVE-2024-4067

Vulnerable Library - micromatch-4.0.5.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.5.tgz

Path to dependency file: /baak-vizualization/package.json

Path to vulnerable library: /baak-vizualization/node_modules/micromatch/package.json,/achilles-frontend/node_modules/micromatch/package.json

Dependency Hierarchy:

  • jest-26.6.0.tgz (Root Library)
    • jest-cli-26.6.3.tgz
      • core-26.6.3.tgz
        • micromatch-4.0.5.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

try-d3-0.1.0/config/webpack.config.js (Application)
  -> eslint-webpack-plugin-2.5.2/dist/cjs.js (Extension)
   -> eslint-webpack-plugin-2.5.2/dist/index.js (Extension)
    -> ❌ micromatch-4.0.5/index.js (Vulnerable Component)

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

Direct dependency fix Resolution (jest): 27.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2022-25883

Vulnerable Library - semver-6.3.0.tgz

The semantic version parser used by npm.

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

Path to dependency file: /achilles-frontend/package.json

Path to vulnerable library: /achilles-frontend/node_modules/sass-loader/node_modules/semver/package.json,/baak-vizualization/node_modules/make-dir/node_modules/semver/package.json,/baak-vizualization/node_modules/@svgr/webpack/node_modules/semver/package.json,/achilles-frontend/node_modules/istanbul-lib-instrument/node_modules/semver/package.json,/achilles-frontend/node_modules/make-dir/node_modules/semver/package.json,/achilles-frontend/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json,/baak-vizualization/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json,/baak-dataload-sql/node_modules/semver/package.json,/baak-vizualization/node_modules/istanbul-lib-instrument/node_modules/semver/package.json,/baak-vizualization/node_modules/jest-snapshot/node_modules/@babel/core/node_modules/semver/package.json,/baak-vizualization/node_modules/sass-loader/node_modules/semver/package.json

Dependency Hierarchy:

  • jest-26.6.0.tgz (Root Library)
    • core-26.6.3.tgz
      • reporters-26.6.2.tgz
        • istanbul-lib-instrument-4.0.3.tgz
          • semver-6.3.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

baak-dataload-sql-1.0.0/src/controller/npm/latestVersion.ts (Application)
  -> latest-version-5.1.0/index.js (Extension)
   -> package-json-6.5.0/index.js (Extension)
    -> ❌ semver-6.3.0/semver.js (Vulnerable Component)

Vulnerability Details

Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

Publish Date: 2023-06-21

URL: CVE-2022-25883

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: GHSA-c2qf-rxjj-qqgw

Release Date: 2023-06-21

Fix Resolution: semver - 5.7.2,6.3.1,7.5.2;org.webjars.npm:semver:7.5.2


⛑️Automatic Remediation will be attempted for this issue.

@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jan 29, 2025
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