{"id":"GHSA-p9pc-299p-vxgp","revision":"b0587d4037ec4d44a9ec10141344b70a","records":[{"revision":"b0587d4037ec4d44a9ec10141344b70a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-p9pc-299p-vxgp","aliases":["CVE-2020-7608","SNYK-JS-YARGSPARSER-560381"],"title":"yargs-parser Vulnerable to Prototype Pollution","description":"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.","state":0,"publishedAt":"2020-09-04T18:00:54+00:00","modifiedAt":"2026-07-08T06:49:37.7262766+00:00","affected":[{"ecosystem":"npm","name":"yargs-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0"},{"kind":"fixed","version":"13.1.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"yargs-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"14.0.0"},{"kind":"fixed","version":"15.0.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"yargs-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"16.0.0"},{"kind":"fixed","version":"18.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"yargs-parser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["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"],"sourceUrl":"https://github.com/advisories/GHSA-p9pc-299p-vxgp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p9pc-299p-vxgp","identifiers":["GHSA-p9pc-299p-vxgp","CVE-2020-7608","SNYK-JS-YARGSPARSER-560381"]},"retained":false,"historicalAffected":[]}],"coverage":[]}