Benderr-TP / uploader

An Electron app for uploading diabetes device data to Tidepool's backend
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

CVE-2020-7774 (High) detected in y18n-5.0.4.tgz, y18n-4.0.0.tgz #9

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

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

CVE-2020-7774 - High Severity Vulnerability

Vulnerable Libraries - y18n-5.0.4.tgz, y18n-4.0.0.tgz

y18n-5.0.4.tgz

the bare-bones internationalization library used by yargs

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

Dependency Hierarchy: - electron-builder-22.9.1.tgz (Root Library) - yargs-16.1.0.tgz - :x: **y18n-5.0.4.tgz** (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

Dependency Hierarchy: - gitbook-cli-2.3.2.tgz (Root Library) - npm-5.1.0.tgz - pacote-2.7.38.tgz - make-fetch-happen-2.6.0.tgz - cacache-10.0.4.tgz - :x: **y18n-4.0.0.tgz** (Vulnerable Library)

Found in HEAD commit: 57add7b0a1f99c21ea28094adb747d0addd0a984

Found in base branch: master

Vulnerability Details

This affects the package y18n before 3.2.2, 4.0.1 and 5.0.5. PoC by po6ix: const y18n = require('y18n')(); y18n.setLocale('__proto__'); y18n.updateLocale({polluted: true}); console.log(polluted); // true

Publish Date: 2020-11-17

URL: CVE-2020-7774

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://www.npmjs.com/advisories/1654

Release Date: 2020-11-17

Fix Resolution (y18n): 5.0.5

Direct dependency fix Resolution (electron-builder): 22.10.0