nexmo-community / google-cloud-sample-code

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

translate-4.2.1.tgz: 6 vulnerabilities (highest severity is: 7.5) - autoclosed #26

Closed mend-for-github-com[bot] closed 2 years ago

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

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in Remediation Available
CVE-2022-24772 High 7.5 node-forge-0.10.0.tgz Transitive 6.0.0
CVE-2020-8237 High 7.5 json-bigint-0.3.1.tgz Transitive 6.0.0
CVE-2022-24771 High 7.5 node-forge-0.10.0.tgz Transitive 6.0.0
WS-2022-0008 Medium 6.6 node-forge-0.10.0.tgz Transitive 6.0.0
CVE-2022-0122 Medium 6.1 node-forge-0.10.0.tgz Transitive 6.0.0
CVE-2022-24773 Medium 5.3 node-forge-0.10.0.tgz Transitive 6.0.0

Details

CVE-2022-24772 ### Vulnerable Library - node-forge-0.10.0.tgz

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Library home page: https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gtoken-4.1.4.tgz - google-p12-pem-2.0.5.tgz - :x: **node-forge-0.10.0.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code does not check for tailing garbage bytes after decoding a `DigestInfo` ASN.1 structure. This can allow padding bytes to be removed and garbage data added to forge a signature when a low public exponent is being used. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.

Publish Date: 2022-03-18

URL: CVE-2022-24772

### 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: High - Availability Impact: None

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-24772

Release Date: 2022-03-18

Fix Resolution (node-forge): 1.3.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue
CVE-2020-8237 ### Vulnerable Library - json-bigint-0.3.1.tgz

JSON.parse with bigints support

Library home page: https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.1.tgz

Path to dependency file: /natural-language/JavaScript/sms-sentiment/package.json

Path to vulnerable library: /natural-language/JavaScript/sms-sentiment/node_modules/json-bigint/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/json-bigint/package.json,/cloud-translation/JavaScript/sms-translation/node_modules/json-bigint/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gcp-metadata-3.5.0.tgz - :x: **json-bigint-0.3.1.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Prototype pollution in json-bigint npm package < 1.0.0 may lead to a denial-of-service (DoS) attack.

Publish Date: 2020-09-18

URL: CVE-2020-8237

### 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://hackerone.com/reports/916430

Release Date: 2020-09-30

Fix Resolution (json-bigint): 1.0.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue
CVE-2022-24771 ### Vulnerable Library - node-forge-0.10.0.tgz

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Library home page: https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gtoken-4.1.4.tgz - google-p12-pem-2.0.5.tgz - :x: **node-forge-0.10.0.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code is lenient in checking the digest algorithm structure. This can allow a crafted structure that steals padding bytes and uses unchecked portion of the PKCS#1 encoded message to forge a signature when a low public exponent is being used. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.

Publish Date: 2022-03-18

URL: CVE-2022-24771

### 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: High - Availability Impact: None

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-24771

Release Date: 2022-03-18

Fix Resolution (node-forge): 1.3.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue
WS-2022-0008 ### Vulnerable Library - node-forge-0.10.0.tgz

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Library home page: https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gtoken-4.1.4.tgz - google-p12-pem-2.0.5.tgz - :x: **node-forge-0.10.0.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The forge.debug API had a potential prototype pollution issue if called with untrusted input. The API was only used for internal debug purposes in a safe way and never documented or advertised. It is suspected that uses of this API, if any exist, would likely not have used untrusted inputs in a vulnerable way.

Publish Date: 2022-01-08

URL: WS-2022-0008

### CVSS 3 Score Details (6.6)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: High - 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://github.com/advisories/GHSA-5rrq-pxf6-6jx5

Release Date: 2022-01-08

Fix Resolution (node-forge): 1.0.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue
CVE-2022-0122 ### Vulnerable Library - node-forge-0.10.0.tgz

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Library home page: https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gtoken-4.1.4.tgz - google-p12-pem-2.0.5.tgz - :x: **node-forge-0.10.0.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

forge is vulnerable to URL Redirection to Untrusted Site

Publish Date: 2022-01-06

URL: CVE-2022-0122

### CVSS 3 Score Details (6.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-gf8q-jrpm-jvxq

Release Date: 2022-01-06

Fix Resolution (node-forge): 1.0.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue
CVE-2022-24773 ### Vulnerable Library - node-forge-0.10.0.tgz

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

Library home page: https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz

Path to dependency file: /cloud-translation/JavaScript/sms-translation/package.json

Path to vulnerable library: /cloud-translation/JavaScript/sms-translation/node_modules/node-forge/package.json,/speech-to-text/JavaScript/voice-transcription/node_modules/node-forge/package.json,/natural-language/JavaScript/sms-sentiment/node_modules/node-forge/package.json

Dependency Hierarchy: - translate-4.2.1.tgz (Root Library) - common-2.4.0.tgz - google-auth-library-5.10.1.tgz - gtoken-4.1.4.tgz - google-p12-pem-2.0.5.tgz - :x: **node-forge-0.10.0.tgz** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Forge (also called `node-forge`) is a native implementation of Transport Layer Security in JavaScript. Prior to version 1.3.0, RSA PKCS#1 v1.5 signature verification code does not properly check `DigestInfo` for a proper ASN.1 structure. This can lead to successful verification with signatures that contain invalid structures but a valid digest. The issue has been addressed in `node-forge` version 1.3.0. There are currently no known workarounds.

Publish Date: 2022-03-18

URL: CVE-2022-24773

### 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: Low - Availability Impact: None

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-24773

Release Date: 2022-03-18

Fix Resolution (node-forge): 1.3.0

Direct dependency fix Resolution (@google-cloud/translate): 6.0.0

:rescue_worker_helmet: Automatic Remediation is available for this issue

:rescue_worker_helmet: Automatic Remediation is available for this issue.

mend-for-github-com[bot] commented 2 years ago

:heavy_check_mark: 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.