Skip to content

Upgrade yargs to 16.0.0 to fix prototype pollution high vulnerability issue #10860

@jjloneman

Description

@jjloneman

🐛 Bug Report

I am unable to use [email protected] for work due to a high vulnerability security issue with [email protected] pulling in [email protected] (see https://snyk.io/test/npm/react-scripts/4.0.1)

Jest vulnerability report: https://snyk.io/test/npm/jest/26.6.3

Note: This also affects [email protected] (https://snyk.io/test/npm/jest-circus/26.6.3)

To Reproduce

$ npx snyk test jest

Testing jest...

✗ High severity vulnerability found in y18n
  Description: Prototype Pollution
  Info: https://snyk.io/vuln/SNYK-JS-Y18N-1021887
  Introduced through: [email protected], @jest/[email protected]
  From: [email protected] > [email protected] > [email protected]
  From: @jest/[email protected] > [email protected] > [email protected] > [email protected]
  From: @jest/[email protected] > [email protected] > [email protected] > [email protected] > [email protected]
  and 15 more...



Organization:      jjloneman
Package manager:   npm
Open source:       yes
Project path:      jest

Tested jest for known vulnerabilities, found 1 vulnerability, 18 vulnerable paths.

Expected behavior

No vulnerabilities.

Link to repl or repo (highly encouraged)

jest vulnerability output from https://snyk.io/test/npm/jest/26.6.3:

Prototype Pollution

Vulnerable module: y18n

Detailed paths

jest-circus vulnerability output from https://snyk.io/test/npm/jest-circus/26.6.3:

Prototype Pollution

Vulnerable module: y18n

Detailed paths

envinfo

$ npx envinfo --preset jest

  System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
  Binaries:
    Node: 15.2.1 - /usr/local/bin/node
    npm: 7.0.12 - /usr/local/bin/npm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions