{"id":"CVE-2020-7774","aliases":["CVE-2020-7774","GHSA-c4w7-xm78-47vh"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution","summary":"The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package y18n before 3.2.2, 4.0.1 and 5.0.5, is vulnerable to Prototype Pollution.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete y18n anterior a las versiones 3.2.2, 4.0.1 y 5.0.5, es vulnerable a la contaminación de prototipos","source":"nvd"}],"published":"2020-11-17T12:30:20.482Z","modified":"2026-06-17T03:25:25.397Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-915","CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"5.0.5","status":"affected"}],"product":"y18n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.2.2"}],"ecosystem":"npm","package":"y18n","purl":"pkg:npm/y18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"npm","package":"y18n","purl":"pkg:npm/y18n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.5"}],"ecosystem":"npm","package":"y18n","purl":"pkg:npm/y18n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.2.2"},{"status":"affected","introduced":"5.0.0","fixed":"5.0.5"},{"status":"affected","version":"4.0.0"}],"vendor":"y18n_project","product":"y18n","cpe":"cpe:2.3:a:y18n_project:y18n:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"19.3.5"},{"status":"affected","version":"20.3.1.2"},{"status":"affected","version":"21.0.0.2"}],"vendor":"oracle","product":"graalvm","cpe":"cpe:2.3:a:oracle:graalvm:19.3.5:*:*:*:enterprise:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0.1.1"}],"vendor":"siemens","product":"sinec_infrastructure_network_services","cpe":"cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-Y18N-1021887","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yargs/y18n/pull/108","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yargs/y18n/issues/96","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7774","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yargs/y18n","tags":["package"],"sources":["ghsa"]}],"credits":["po6ix"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7774","url":"https://www.cve.org/CVERecord?id=CVE-2020-7774","licence":"CVE Terms of Use","modified":"2024-09-16T20:13:29.664Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c4w7-xm78-47vh","url":"https://github.com/advisories/GHSA-c4w7-xm78-47vh","licence":"CC-BY-4.0","modified":"2024-12-05T15:28:53.812Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7774","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7774","licence":"Public domain","modified":"2026-06-17T03:25:25.397Z"}],"updatedAt":"2026-11-25T22:57:55.841Z","epss":{"score":0.69589,"percentile":0.99374,"date":"2026-12-01T12:00:22.000Z"}}