What’s Vulnerable › Vulnerabilities
CVE-2020-7608: yargs-parser Vulnerable to Prototype Pollution
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-03-16 · updated 2026-06-17
- Weakness: CWE-1321
Description
yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.
Affected products
- yargs-parser: before 5.0.1; from 6.0.0 before 13.1.2; from 14.0.0 before 15.0.1; from 16.0.0 before 18.1.1 — fixed in 13.1.2, 15.0.1, 18.1.1, 5.0.1
- Npm Yargs-Parser: from 6.0.0 before 13.1.2; from 14.0.0 before 15.0.1; from 16.0.0 before 18.1.1; before 5.0.1 — fixed in 13.1.2, 15.0.1, 18.1.1, 5.0.1
How to fix
Upgrade to a fixed version: yargs-parser 13.1.2, 15.0.1, 18.1.1, 5.0.1; Npm Yargs-Parser 13.1.2, 15.0.1, 18.1.1, 5.0.1. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2020-7608 or the next vulnerability affects your stack