CVE-2020-7774
HIGH7.3EPSS 0.47%Prototype Pollution in y18n
發布日:2021/3/29修改日:2024/12/5
描述
### 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.
受影響套件(3)
- Alpine/nodejsfrom 0, < 10.24.1-r0
- Debian/node-y18nfrom 0, < 4.0.0-3
- npm/y18nfrom 0, < 3.2.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
參考連結(12)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-7774
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2020-7774
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2020-7774
- PATCHhttps://github.com/yargs/y18n
- WEBhttps://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- WEBhttps://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3
- WEBhttps://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25
- WEBhttps://github.com/yargs/y18n/issues/96
- WEBhttps://github.com/yargs/y18n/pull/108
- WEBhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306
- WEBhttps://snyk.io/vuln/SNYK-JS-Y18N-1021887
- WEBhttps://www.oracle.com/security-alerts/cpuApr2021.html