{"id":"CVE-2020-7608","aliases":["CVE-2020-7608","GHSA-p9pc-299p-vxgp","SNYK-JS-YARGSPARSER-560381"],"related":[],"kind":"vulnerability","state":"published","title":"yargs-parser Vulnerable to Prototype Pollution","summary":"yargs-parser could be tricked into adding or modifying properties of Object.prototype using a \"__proto__\" payload.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"yargs-parser could be tricked into adding or modifying properties of Object.prototype using a \"__proto__\" payload.","source":"cvelist"},{"lang":"en","text":"Affected versions of `yargs-parser` are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of `Object`, causing the addition or modification of an existing property that will exist on all objects.  \nParsing the argument `--foo.__proto__.bar baz'` adds a `bar` property with value `baz` to all objects. This is only exploitable if attackers have control over the arguments being passed to `yargs-parser`.\n\n\n\n## Recommendation\n\nUpgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Yargs-parser podría ser engañado para agregar o modificar propiedades de Object.prototype utilizando una carga útil \"__proto__\".","source":"nvd"}],"published":"2020-03-16T19:49:49.000Z","modified":"2026-07-08T06:49:37.726Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-915","CWE-1321"],"affected":[{"ranges":[{"version":"All versions prior to version 18.1.1 and patches at 13.1.2 and 15.0.1","status":"affected"}],"product":"yargs-parser","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"13.1.2"}],"ecosystem":"npm","package":"yargs-parser","purl":"pkg:npm/yargs-parser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"14.0.0","status":"affected","fixed":"15.0.1"}],"ecosystem":"npm","package":"yargs-parser","purl":"pkg:npm/yargs-parser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"18.1.1"}],"ecosystem":"npm","package":"yargs-parser","purl":"pkg:npm/yargs-parser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.0.1"}],"ecosystem":"npm","package":"yargs-parser","purl":"pkg:npm/yargs-parser","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.0.1"},{"status":"affected","introduced":"6.0.0","fixed":"13.1.2"},{"status":"affected","introduced":"14.0.0","fixed":"15.0.1"},{"status":"affected","introduced":"16.0.0","fixed":"18.1.1"}],"vendor":"yargs","product":"yargs-parser","cpe":"cpe:2.3:a:yargs:yargs-parser:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-YARGSPARSER-560381","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7608","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yargs/yargs-parser/commit/1c417bd0b42b09c475ee881e36d292af4fa2cc36","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yargs/yargs-parser/commit/63810ca1ae1a24b08293a4d971e70e058c7a41e2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yargs/yargs-parser","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1500","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7608","url":"https://www.cve.org/CVERecord?id=CVE-2020-7608","licence":"CVE Terms of Use","modified":"2024-08-04T09:33:19.972Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p9pc-299p-vxgp","url":"https://github.com/advisories/GHSA-p9pc-299p-vxgp","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:37.726Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7608","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7608","licence":"Public domain","modified":"2026-06-17T03:25:06.803Z"}],"updatedAt":"2026-11-25T22:57:51.553Z","epss":{"score":0.00514,"percentile":0.45328,"date":"2026-12-02T12:00:21.000Z"}}