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

react-native-0.68.2.tgz: 6 vulnerabilities (highest severity is: 9.8) #104

Closed
mend-for-github.aaakk.us.kg bot opened this issue Jun 7, 2022 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github.aaakk.us.kg
Copy link
Contributor

mend-for-github.aaakk.us.kg bot commented Jun 7, 2022

Vulnerable Library - react-native-0.68.2.tgz

Path to dependency file: /Signaling/package.json

Path to vulnerable library: /BasicVideoChat/node_modules/path-parse/package.json,/Signaling/node_modules/path-parse/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in Remediation Available
CVE-2021-44906 High 9.8 minimist-1.2.5.tgz Transitive 0.69.2
CVE-2021-42740 High 9.8 shell-quote-1.6.1.tgz Transitive 0.68.3
CVE-2021-3807 High 7.5 ansi-regex-5.0.0.tgz Transitive 0.68.3
CVE-2021-3777 High 7.5 tmpl-1.0.4.tgz Transitive 0.68.3
CVE-2021-23343 High 7.5 path-parse-1.0.6.tgz Transitive 0.68.3
CVE-2021-32640 Medium 5.3 ws-6.2.1.tgz Transitive 0.68.3

Details

CVE-2021-44906

Vulnerable Library - minimist-1.2.5.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz

Path to dependency file: /Signaling/package.json

Path to vulnerable library: /Signaling/node_modules/minimist/package.json,/BasicVideoChat/node_modules/minimist/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • cli-7.0.3.tgz
      • minimist-1.2.5.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).

Publish Date: 2022-03-17

URL: CVE-2021-44906

CVSS 3 Score Details (9.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2022-03-17

Fix Resolution (minimist): 1.2.6

Direct dependency fix Resolution (react-native): 0.69.2

⛑️ Automatic Remediation is available for this issue

CVE-2021-42740

Vulnerable Library - shell-quote-1.6.1.tgz

quote and parse shell commands

Library home page: https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz

Path to dependency file: /BasicVideoChat/package.json

Path to vulnerable library: /BasicVideoChat/node_modules/shell-quote/package.json,/Signaling/node_modules/shell-quote/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • react-devtools-core-4.24.6.tgz
      • shell-quote-1.6.1.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

The shell-quote package before 1.7.3 for Node.js allows command injection. An attacker can inject unescaped shell metacharacters through a regex designed to support Windows drive letters. If the output of this package is passed to a real shell as a quoted argument to a command with exec(), an attacker can inject arbitrary commands. This is because the Windows drive letter regex character class is {A-z] instead of the correct {A-Za-z]. Several shell metacharacters exist in the space between capital letter Z and lower case letter a, such as the backtick character.

Publish Date: 2021-10-21

URL: CVE-2021-42740

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • 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: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42740

Release Date: 2021-10-21

Fix Resolution (shell-quote): 1.7.3

Direct dependency fix Resolution (react-native): 0.68.3

⛑️ Automatic Remediation is available for this issue

CVE-2021-3807

Vulnerable Library - ansi-regex-5.0.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz

Path to dependency file: /Signaling/package.json

Path to vulnerable library: /Signaling/node_modules/ansi-regex/package.json,/BasicVideoChat/node_modules/ansi-regex/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • pretty-format-26.6.2.tgz
      • ansi-regex-5.0.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

ansi-regex is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-09-17

URL: CVE-2021-3807

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://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994/

Release Date: 2021-09-17

Fix Resolution (ansi-regex): 5.0.1

Direct dependency fix Resolution (react-native): 0.68.3

⛑️ Automatic Remediation is available for this issue

CVE-2021-3777

Vulnerable Library - tmpl-1.0.4.tgz

JavaScript micro templates.

Library home page: https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz

Path to dependency file: /Signaling/package.json

Path to vulnerable library: /Signaling/node_modules/tmpl/package.json,/BasicVideoChat/node_modules/tmpl/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • cli-7.0.3.tgz
      • cli-plugin-metro-7.0.3.tgz
        • metro-core-0.67.0.tgz
          • jest-haste-map-27.5.1.tgz
            • walker-1.0.7.tgz
              • makeerror-1.0.11.tgz
                • tmpl-1.0.4.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

nodejs-tmpl is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-09-15

URL: CVE-2021-3777

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: 2021-09-15

Fix Resolution (tmpl): 1.0.5

Direct dependency fix Resolution (react-native): 0.68.3

⛑️ Automatic Remediation is available for this issue

CVE-2021-23343

Vulnerable Library - path-parse-1.0.6.tgz

Node.js path.parse() ponyfill

Library home page: https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz

Path to dependency file: /BasicVideoChat/package.json

Path to vulnerable library: /BasicVideoChat/node_modules/path-parse/package.json,/Signaling/node_modules/path-parse/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • metro-react-native-babel-transformer-0.67.0.tgz
      • metro-react-native-babel-preset-0.67.0.tgz
        • plugin-transform-runtime-7.13.15.tgz
          • babel-plugin-polyfill-regenerator-0.2.0.tgz
            • helper-define-polyfill-provider-0.2.0.tgz
              • resolve-1.20.0.tgz
                • path-parse-1.0.6.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

All versions of package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.

Publish Date: 2021-05-04

URL: CVE-2021-23343

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: 2021-05-04

Fix Resolution (path-parse): 1.0.7

Direct dependency fix Resolution (react-native): 0.68.3

⛑️ Automatic Remediation is available for this issue

CVE-2021-32640

Vulnerable Library - ws-6.2.1.tgz

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

Library home page: https://registry.npmjs.org/ws/-/ws-6.2.1.tgz

Path to dependency file: /BasicVideoChat/package.json

Path to vulnerable library: /BasicVideoChat/node_modules/react-native/node_modules/ws/package.json,/Signaling/node_modules/react-native/node_modules/ws/package.json

Dependency Hierarchy:

  • react-native-0.68.2.tgz (Root Library)
    • ws-6.2.1.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the Sec-Websocket-Protocol header can be used to significantly slow down a ws server. The vulnerability has been fixed in [email protected] (websockets/ws@00c425e). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options.

Publish Date: 2021-05-25

URL: CVE-2021-32640

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-6fc8-4gx4-v693

Release Date: 2021-05-25

Fix Resolution (ws): 6.2.2

Direct dependency fix Resolution (react-native): 0.68.3

⛑️ Automatic Remediation is available for this issue


⛑️ Automatic Remediation is available for this issue.

@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Jun 7, 2022
@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot changed the title react-native-0.68.2.tgz: 5 vulnerabilities (highest severity is: 9.8) react-native-0.68.2.tgz: 6 vulnerabilities (highest severity is: 9.8) Jun 28, 2022
@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot changed the title react-native-0.68.2.tgz: 6 vulnerabilities (highest severity is: 9.8) react-native-0.68.2.tgz: 7 vulnerabilities (highest severity is: 9.8) Aug 3, 2022
@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot changed the title react-native-0.68.2.tgz: 7 vulnerabilities (highest severity is: 9.8) react-native-0.68.2.tgz: 6 vulnerabilities (highest severity is: 9.8) Aug 5, 2022
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

1 participant