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

yargs-12.0.5.tgz: 3 vulnerabilities (highest severity is: 7.5) reachable #5

Open
mend-for-github-com bot opened this issue Nov 12, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

mend-for-github-com bot commented Nov 12, 2024

Vulnerable Library - yargs-12.0.5.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/cross-spawn/package.json

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Vulnerabilities

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

Reachable

CVE-2020-7774 High 7.3 y18n-4.0.0.tgz Transitive 13.0.0-candidate.0

Reachable

CVE-2020-7608 Medium 5.3 yargs-parser-11.1.1.tgz Transitive 13.0.0-candidate.0

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-6.0.5.tgz

Cross platform child_process#spawn and child_process#spawnSync

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

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/cross-spawn/package.json

Dependency Hierarchy:

  • yargs-12.0.5.tgz (Root Library)
    • os-locale-3.0.1.tgz
      • execa-0.10.0.tgz
        • cross-spawn-6.0.5.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

puppeteer-examples-0.0.1/side-by-side-pageload.js (Application)
  -> yargs-12.0.5/index.js (Extension)
   -> yargs-12.0.5/yargs.js (Extension)
    -> os-locale-3.0.1/index.js (Extension)
    ...
      -> cross-spawn-6.0.5/index.js (Extension)
       -> cross-spawn-6.0.5/lib/parse.js (Extension)
        -> ❌ cross-spawn-6.0.5/lib/util/escape.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-2020-7774

Vulnerable Library - y18n-4.0.0.tgz

the bare-bones internationalization library used by yargs

Library home page: https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/y18n/package.json

Dependency Hierarchy:

  • yargs-12.0.5.tgz (Root Library)
    • y18n-4.0.0.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

puppeteer-examples-0.0.1/side-by-side-pageload.js (Application)
  -> yargs-12.0.5/index.js (Extension)
   -> yargs-12.0.5/yargs.js (Extension)
    -> ❌ y18n-4.0.0/index.js (Vulnerable Component)

Vulnerability Details

The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution.

Publish Date: 2020-11-17

URL: CVE-2020-7774

CVSS 3 Score Details (7.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.npmjs.com/advisories/1654

Release Date: 2020-11-17

Fix Resolution (y18n): 4.0.1

Direct dependency fix Resolution (yargs): 13.0.0-candidate.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2020-7608

Vulnerable Library - yargs-parser-11.1.1.tgz

the mighty option parser used by yargs

Library home page: https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/yargs/node_modules/yargs-parser/package.json

Dependency Hierarchy:

  • yargs-12.0.5.tgz (Root Library)
    • yargs-parser-11.1.1.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

puppeteer-examples-0.0.1/side-by-side-pageload.js (Application)
  -> yargs-12.0.5/index.js (Extension)
   -> yargs-12.0.5/yargs.js (Extension)
    -> ❌ yargs-parser-11.1.1/index.js (Vulnerable Component)

Vulnerability Details

yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "proto" payload.

Publish Date: 2020-03-16

URL: CVE-2020-7608

CVSS 3 Score Details (5.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2020-03-16

Fix Resolution (yargs-parser): 13.1.2

Direct dependency fix Resolution (yargs): 13.0.0-candidate.0

⛑️ Automatic Remediation will be attempted for this issue.


⛑️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 Nov 12, 2024
@mend-for-github-com mend-for-github-com bot changed the title yargs-12.0.5.tgz: 3 vulnerabilities (highest severity is: 7.5) reachable yargs-12.0.5.tgz: 2 vulnerabilities (highest severity is: 7.5) reachable Jan 21, 2025
@mend-for-github-com mend-for-github-com bot changed the title yargs-12.0.5.tgz: 2 vulnerabilities (highest severity is: 7.5) reachable yargs-12.0.5.tgz: 3 vulnerabilities (highest severity is: 7.5) reachable Jan 24, 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