yargs-parser · Vulnerability
cve-program · CVE-2020-7608
Publishedyargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.
Read the publisher's advisoryeuvd · EUVD-2020-1208
Publishedyargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.
Read the publisher's advisorynvd · CVE-2020-7608
Publishedyargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.
Read the publisher's advisoryosv · GHSA-p9pc-299p-vxgp
PublishedAffected 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. Parsing 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`. ## Recommendation Upgrade to versions 13.1.2, 15.0.1, 18.1.1 or later.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2020-7608 · CVE overview and exploitation status
cve-program · CVE-2020-7608
euvd · EUVD-2020-1208
nvd · CVE-2020-7608
osv · GHSA-p9pc-299p-vxgp
- https://nvd.nist.gov/vuln/detail/CVE-2020-7608
- https://github.com/yargs/yargs-parser/commit/1c417bd0b42b09c475ee881e36d292af4fa2cc36
- https://github.com/yargs/yargs-parser/commit/63810ca1ae1a24b08293a4d971e70e058c7a41e2
- https://github.com/yargs/yargs-parser
- https://snyk.io/vuln/SNYK-JS-YARGSPARSER-560381
- https://www.npmjs.com/advisories/1500
Related changes
Linked by CVE identifier- yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload. · Advisory content revised · 24 Nov 2026