nexmo-community / google-cloud-sample-code

This repository contains code examples to use with Google Cloud.
MIT License
0 stars 2 forks source link

speech-2.3.1.tgz: 5 vulnerabilities (highest severity is: 8.2) #25

Open mend-for-github-com[bot] opened 2 years ago

mend-for-github-com[bot] commented 2 years ago
Vulnerable Library - speech-2.3.1.tgz

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/@grpc/grpc-js/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (speech version) Remediation Possible**
CVE-2022-25878 High 8.2 protobufjs-5.0.3.tgz Transitive 3.0.0
CVE-2020-7768 High 7.5 grpc-js-0.3.6.tgz Transitive 3.0.0
CVE-2024-28863 Medium 6.5 tar-6.1.11.tgz Transitive N/A*
CVE-2024-37168 Medium 5.3 grpc-js-0.3.6.tgz Transitive 5.0.0
CVE-2022-25883 Medium 5.3 semver-7.3.8.tgz Transitive 3.0.0

*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-2022-25878 ### Vulnerable Library - protobufjs-5.0.3.tgz

Protocol Buffers for JavaScript. Finally.

Library home page: https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/grpc/node_modules/protobufjs/package.json

Dependency Hierarchy: - speech-2.3.1.tgz (Root Library) - google-gax-0.25.6.tgz - grpc-1.24.11.tgz - :x: **protobufjs-5.0.3.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The package protobufjs before 6.11.3 are vulnerable to Prototype Pollution which can allow an attacker to add/modify properties of the Object.prototype. This vulnerability can occur in multiple ways: 1. by providing untrusted user input to util.setProperty or to ReflectionObject.setParsedOption functions 2. by parsing/loading .proto files

Publish Date: 2022-05-27

URL: CVE-2022-25878

### CVSS 3 Score Details (8.2)

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: High - 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-2022-25878

Release Date: 2022-05-27

Fix Resolution (protobufjs): 6.10.3

Direct dependency fix Resolution (@google-cloud/speech): 3.0.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2020-7768 ### Vulnerable Library - grpc-js-0.3.6.tgz

gRPC Library for Node - pure JS implementation

Library home page: https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-0.3.6.tgz

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/@grpc/grpc-js/package.json

Dependency Hierarchy: - speech-2.3.1.tgz (Root Library) - google-gax-0.25.6.tgz - :x: **grpc-js-0.3.6.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The package grpc before 1.24.4; the package @grpc/grpc-js before 1.1.8 are vulnerable to Prototype Pollution via loadPackageDefinition.

Publish Date: 2020-11-11

URL: CVE-2020-7768

### 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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7768

Release Date: 2020-11-11

Fix Resolution (@grpc/grpc-js): 1.1.8

Direct dependency fix Resolution (@google-cloud/speech): 3.0.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2024-28863 ### Vulnerable Library - tar-6.1.11.tgz

tar for node

Library home page: https://registry.npmjs.org/tar/-/tar-6.1.11.tgz

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/tar/package.json

Dependency Hierarchy: - speech-2.3.1.tgz (Root Library) - google-gax-0.25.6.tgz - grpc-1.24.11.tgz - node-pre-gyp-1.0.10.tgz - :x: **tar-6.1.11.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

node-tar is a Tar for Node.js. node-tar prior to version 6.2.1 has no limit on the number of sub-folders created in the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running node-tar and even crash the Node.js client within few seconds of running it using a path with too many sub-folders inside. Version 6.2.1 fixes this issue by preventing extraction in excessively deep sub-folders.

Publish Date: 2024-03-21

URL: CVE-2024-28863

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - 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://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36

Release Date: 2024-03-21

Fix Resolution: tar - 6.2.1

CVE-2024-37168 ### Vulnerable Library - grpc-js-0.3.6.tgz

gRPC Library for Node - pure JS implementation

Library home page: https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-0.3.6.tgz

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/@grpc/grpc-js/package.json

Dependency Hierarchy: - speech-2.3.1.tgz (Root Library) - google-gax-0.25.6.tgz - :x: **grpc-js-0.3.6.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

@grpc/grps-js implements the core functionality of gRPC purely in JavaScript, without a C++ addon. Prior to versions 1.10.9, 1.9.15, and 1.8.22, there are two separate code paths in which memory can be allocated per message in excess of the `grpc.max_receive_message_length` channel option: If an incoming message has a size on the wire greater than the configured limit, the entire message is buffered before it is discarded; and/or if an incoming message has a size within the limit on the wire but decompresses to a size greater than the limit, the entire message is decompressed into memory, and on the server is not discarded. This has been patched in versions 1.10.9, 1.9.15, and 1.8.22.

Publish Date: 2024-06-10

URL: CVE-2024-37168

### 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://github.com/grpc/grpc-node/security/advisories/GHSA-7v5v-9h63-cj86

Release Date: 2024-06-10

Fix Resolution (@grpc/grpc-js): 1.8.22

Direct dependency fix Resolution (@google-cloud/speech): 5.0.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
CVE-2022-25883 ### Vulnerable Library - semver-7.3.8.tgz

The semantic version parser used by npm.

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

Path to dependency file: /speech-to-text/JavaScript/voice-transcription/package.json

Path to vulnerable library: /speech-to-text/JavaScript/voice-transcription/node_modules/@mapbox/node-pre-gyp/node_modules/semver/package.json

Dependency Hierarchy: - speech-2.3.1.tgz (Root Library) - google-gax-0.25.6.tgz - grpc-1.24.11.tgz - node-pre-gyp-1.0.10.tgz - :x: **semver-7.3.8.tgz** (Vulnerable Library)

Found in base branch: main

### 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: https://github.com/advisories/GHSA-c2qf-rxjj-qqgw

Release Date: 2023-06-21

Fix Resolution (semver): 7.5.2

Direct dependency fix Resolution (@google-cloud/speech): 3.0.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.