Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWM0dzcteG03OC00N3Zo
Prototype Pollution in y18n
Overview
The npm package y18n
before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution.
POC
const y18n = require('y18n')();
y18n.setLocale('__proto__');
y18n.updateLocale({polluted: true});
console.log(polluted); // true
Recommendation
Upgrade to version 3.2.2, 4.0.1, 5.0.5 or later.
Permalink: https://github.com/advisories/GHSA-c4w7-xm78-47vhJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLWM0dzcteG03OC00N3Zo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 3 years ago
Updated: 6 months ago
CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Identifiers: GHSA-c4w7-xm78-47vh, CVE-2020-7774
References:
- https://nvd.nist.gov/vuln/detail/CVE-2020-7774
- https://github.com/yargs/y18n/issues/96
- https://github.com/yargs/y18n/pull/108
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306
- https://snyk.io/vuln/SNYK-JS-Y18N-1021887
- https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3
- https://github.com/advisories/GHSA-c4w7-xm78-47vh
Blast Radius: 45.4
Affected Packages
npm:y18n
Dependent packages: 1,914Dependent repositories: 1,652,118
Downloads: 247,176,010 last month
Affected Version Ranges: >= 5.0.0, < 5.0.5, = 4.0.0, < 3.2.2
Fixed in: 5.0.5, 4.0.1, 3.2.2
All affected versions: 1.0.0, 1.1.0, 2.0.0, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 4.0.0, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4
All unaffected versions: 3.2.2, 4.0.1, 4.0.2, 4.0.3, 5.0.5, 5.0.6, 5.0.7, 5.0.8