Skip to content
OpenAdvisories
Medium · 5.3 CVE-2020-7608 EUVD-2020-1208GHSA-p9pc-299p-vxgpSNYK-JS-YARGSPARSER-560381

yargs-parser Vulnerable to Prototype Pollution

Published Mar 16, 2020 · Updated Aug 4, 2024 · Assigned by snyk

Description

yargs-parser could be tricked into adding or modifying properties of Object.prototype using a "__proto__" payload.

Affected products

VendorProductAffectedFixed
— yargs-parser All versions prior to version 18.1.1 and patches at 13.1.2 and 15.0.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-yargs-parser 18.1.1-1 —
Debian 13 node-yargs-parser 18.1.1-1 —
Debian 12 node-yargs-parser 18.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS node-yargs-parser No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9502+012d8a97 RHSA-2021:0548, RHSA-2020:5499
RHEL 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+3369+37ae6a45 RHSA-2021:0548, RHSA-2020:5499
RHEL 8 nodejs-packaging 17-3.module+el8.1.0+3369+37ae6a45 RHSA-2021:0548, RHSA-2020:5499
RHEL 8 npm 1:6.14.8-1.12.19.1.1.module+el8.3.0+8851+b7b41ca0 RHSA-2021:0548, RHSA-2020:5499
RHEL 3 rh-nodejs10-nodejs +2 10.23.1-2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs10-npm 6.14.10-10.23.1.2.el7 RHSA-2021:0521
RHEL 3 rh-nodejs12-nodejs +2 12.19.1-2.el7 RHSA-2020:5305
RHEL 3 rh-nodejs12-npm 6.14.8-12.19.1.2.el7 RHSA-2020:5305

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nodejs-nodemon 1.18.3-1.module_el8.3.0+2023+d2377ea3 ALSA-2021:0548, ALSA-2020:5499
AlmaLinux 8 nodejs-packaging 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:0548, ALSA-2020:5499

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 nodejs-nodemon 1.18.3-1.module+el8.3.0+101+f84c7154 RLSA-2021:0548, RLSA-2020:5499
Rocky Linux 8 nodejs-packaging 17-3.module+el8.3.0+101+f84c7154 RLSA-2021:0548, RLSA-2020:5499

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nodejs +3 1:10.23.1-1.module+el8.3.0+9642+87902f83 ELSA-2021-0548
Oracle Linux 8 nodejs-nodemon 1.18.3-1.module+el8.1.0+5392+4d6b561f ELSA-2021-0548
Oracle Linux 8 nodejs-packaging 17-3.module+el8.1.0+5392+4d6b561f ELSA-2021-0548
Oracle Linux 8 npm 1:6.14.10-1.10.23.1.1.module+el8.3.0+9642+87902f83 ELSA-2021-0548

Affected packages

EcosystemPackageAffectedFixedRecord
npm yargs-parser >= 6.0.0, < 13.1.2 13.1.2 GHSA-p9pc-299p-vxgp
npm yargs-parser >= 14.0.0, < 15.0.1 15.0.1 GHSA-p9pc-299p-vxgp
npm yargs-parser >= 16.0.0, < 18.1.1 18.1.1 GHSA-p9pc-299p-vxgp
npm yargs-parser < 5.0.1 5.0.1 GHSA-p9pc-299p-vxgp

Advisories 11

References