{"schema_version":"1.9.0","id":"GHSA-c4w7-xm78-47vh","published":"2021-03-29T16:05:12Z","modified":"2024-12-05T15:28:53.812442Z","aliases":["CVE-2020-7774"],"summary":"Prototype Pollution in y18n","details":"### Overview\n\nThe npm package `y18n` before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution. \n\n### POC\n\n```js\nconst y18n = require('y18n')();\n\ny18n.setLocale('__proto__');\ny18n.updateLocale({polluted: true});\n\nconsole.log(polluted); // true\n```\n\n### Recommendation\n\nUpgrade to version 3.2.2, 4.0.1, 5.0.5 or later.","affected":[{"package":{"name":"y18n","ecosystem":"npm","purl":"pkg:npm/y18n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.2.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-c4w7-xm78-47vh/GHSA-c4w7-xm78-47vh.json"}},{"package":{"name":"y18n","ecosystem":"npm","purl":"pkg:npm/y18n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-c4w7-xm78-47vh/GHSA-c4w7-xm78-47vh.json"}},{"package":{"name":"y18n","ecosystem":"npm","purl":"pkg:npm/y18n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"5.0.0"},{"fixed":"5.0.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-c4w7-xm78-47vh/GHSA-c4w7-xm78-47vh.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7774"},{"type":"WEB","url":"https://github.com/yargs/y18n/issues/96"},{"type":"WEB","url":"https://github.com/yargs/y18n/pull/108"},{"type":"WEB","url":"https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3"},{"type":"WEB","url":"https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf"},{"type":"PACKAGE","url":"https://github.com/yargs/y18n"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-Y18N-1021887"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuApr2021.html"}],"database_specific":{"cwe_ids":["CWE-1321","CWE-20","CWE-915"],"github_reviewed":true,"github_reviewed_at":"2021-03-12T21:23:11Z","nvd_published_at":"2020-11-17T13:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"}]}