create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

React-Scripts dependencies with CVEs

Open kevinfealey opened this issue 6 years ago • 27 comments

Is your proposal related to a problem?

Snyk reports vulnerabilities in react-scripts dependency tree:

✗ Medium severity vulnerability found in dot-prop

Description: Prototype Pollution Info: https://snyk.io/vuln/SNYK-JS-DOTPROP-543489

Introduced through: [email protected] From: [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] From: [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] From: [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] > [email protected] Fixed in: 5.1.1

✗ Medium severity vulnerability found in @hapi/hoek

Description: Prototype Pollution Info: https://snyk.io/vuln/SNYK-JS-HAPIHOEK-548452

Introduced through: [email protected] From: [email protected] > [email protected] > [email protected] > @hapi/[email protected] > @hapi/[email protected] From: [email protected] > [email protected] > [email protected] > @hapi/[email protected] > @hapi/[email protected] > @hapi/[email protected] Fixed in: 8.5.1, 9.0.3

Please note that although the above references [email protected], v3.4.0 has not updated these dependencies and therefore has the same problem.

Describe the solution you'd like

Release a new version of react-scripts that updates to the latest versions of workbox-webpack-plugin and optimize-css-assets-webpack-plugin, which should resolve this issue.

Describe alternatives you've considered

None

Additional context

N/A

kevinfealey avatar Feb 20 '20 22:02 kevinfealey

I'll add some from [email protected] (latest)

Description: Prototype Pollution Info: https://app.snyk.io/vuln/SNYK-JS-YARGSPARSER-560381**

Introduced through: [email protected] › [email protected] › [email protected] › [email protected]

krisgerhard avatar Apr 30 '20 07:04 krisgerhard

+1 for yargs-parser

shmily40686 avatar May 01 '20 09:05 shmily40686

yargs-parser has had breaking changes in its releases since 16.1.0: https://github.com/yargs/yargs-parser/releases

In the meantime, forcing resolution to an pre-breaking change release of yargs-parser seems to work

MrMonsk avatar May 01 '20 14:05 MrMonsk

any version of react-scripts package without this vulnerability?

thecaptain10 avatar May 06 '20 20:05 thecaptain10

any fix planned for yargs-parser ?

vikramdadwal avatar May 07 '20 19:05 vikramdadwal

Please file with webpack-dev-server about yargs-parser. There's nothing we can from our end to update their dependencies.

ianschmitz avatar May 08 '20 04:05 ianschmitz

There is a webpack-dev-server issue: https://github.com/webpack/webpack-dev-server/issues/2559

priegger avatar May 08 '20 06:05 priegger

FYI: https://github.com/webpack/webpack-dev-server/pull/2581 has been merged and [email protected] has been released with the fix.

I've opened a PR here to upgrade yargs-parser: https://github.com/facebook/create-react-app/pull/8975

mhassan1 avatar May 08 '20 15:05 mhassan1

When might we expect the next release of react-scripts?

mhassan1 avatar May 11 '20 23:05 mhassan1

When might we expect the next release of react-scripts?

Hope that this is soon because a new high priority vulnerability has been raised now:

Denial of Service in the web-pack dependency

dillu24 avatar May 15 '20 12:05 dillu24

@ianschmitz @iansu do you know when the next release will happen? I think it would be nice if we could get security related changes published as soon as possible after being reviewed and merged.

I would love to help if I can. If there are specific tasks needed or technical blockers, I would be happy to be involved and pick up some work?

matteofigus avatar May 18 '20 11:05 matteofigus

I am also getting this error for react-scripts > webpack-dev-server > yargs > yargs-parser, Is there any solution to it ? My website build is getting failed because of this error.

                  === npm audit security report ===


                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

Low Prototype Pollution

Package yargs-parser

Patched in >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2

Dependency of react-scripts [dev]

Path react-scripts > webpack-dev-server > yargs > yargs-parser

More info https://npmjs.com/advisories/1500

found 1 low severity vulnerability in 1690 scanned packages 1 vulnerability requires manual review. See the full report for details.

sonikamah avatar May 19 '20 04:05 sonikamah

I am also getting this error for react-scripts > webpack-dev-server > yargs > yargs-parser, Is there any solution to it ? My website build is getting failed because of this error.

                  === npm audit security report ===


                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

Low Prototype Pollution

Package yargs-parser

Patched in >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2

Dependency of react-scripts [dev]

Path react-scripts > webpack-dev-server > yargs > yargs-parser

More info https://npmjs.com/advisories/1500

found 1 low severity vulnerability in 1690 scanned packages 1 vulnerability requires manual review. See the full report for details.

Same here. I am tracking this issue here https://github.com/zw627/react-router-github-pages/issues/11

dillu24 avatar May 19 '20 07:05 dillu24

Getting this audit report is their any update on this ? `
=== npm audit security report ===

                                           Manual Review

Some vulnerabilities require your attention to resolve

Visit https://go.npm.me/audit-guide for additional guidance

Low Prototype Pollution

Package yargs-parser

Patched in >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2

Dependency of react-scripts

Path react-scripts > webpack-dev-server > yargs > yargs-parse

More info https://npmjs.com/advisories/1500

found 1 low severity vulnerability in 1620 scanned packages 1 vulnerability requires manual review. See the full report for details.`

shahrukhsiddiqui avatar May 22 '20 09:05 shahrukhsiddiqui

Getting the same issue mentioned above, is there any new version of react-script which will fix this issue.

Low             Prototype Pollution                                                                                                                   
Package         yargs-parser                                                                                                                        
Patched in      >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2                                                                                           
Dependency of   react-scripts [dev]                                                                                                                            
Path            react-scripts > webpack-dev-server > yargs > yargs-parser                                                                                   
More info       https://nodesecurity.io/advisories/1500

AbhaysinghBhosale avatar Jun 15 '20 05:06 AbhaysinghBhosale

I am having the same issue, any updates on this?

lausellduane avatar Jun 16 '20 17:06 lausellduane

Same issue here.

Getting nearly 5000 low severity vulnerabilities with react-scripts 3.4.1.

found 4982 low severity vulnerabilities in 1641 scanned packages 4982 vulnerabilities require manual review. See the full report for details.

Attached is the vulnerability report. vulnerability-report.txt

shridharbhandiwad avatar Jul 03 '20 06:07 shridharbhandiwad

Same issue here.

Getting nearly 5000 low severity vulnerabilities with react-scripts 3.4.1.

found 4982 low severity vulnerabilities in 1641 scanned packages 4982 vulnerabilities require manual review. See the full report for details.

Most of these are not related to yargs-parser - they're from a new vulnerability raised by npm for lodash. This PR https://github.com/lodash/lodash/pull/4759 has already been merged to fix the issue, so npm will probably release a patch based on the PR.

EoghanBonass avatar Jul 03 '20 06:07 EoghanBonass

Same issue here. Getting nearly 5000 low severity vulnerabilities with react-scripts 3.4.1. found 4982 low severity vulnerabilities in 1641 scanned packages 4982 vulnerabilities require manual review. See the full report for details.

Most of these are not related to yargs-parser - they're from a new vulnerability raised by npm for lodash. This PR https://github.com/lodash/lodash/pull/4759 has already been merged to fix the issue, so npm will probably release a patch based on the PR.

Good to know, I just spent a while trying unsuccessfully to fix this.

jacobwicks avatar Jul 03 '20 21:07 jacobwicks

Same issue here. Getting nearly 5000 low severity vulnerabilities with react-scripts 3.4.1. found 4982 low severity vulnerabilities in 1641 scanned packages 4982 vulnerabilities require manual review. See the full report for details.

Most of these are not related to yargs-parser - they're from a new vulnerability raised by npm for lodash. This PR https://github.com/lodash/lodash/pull/4759 has already been merged to fix the issue, so npm will probably release a patch based on the PR.

Thanks a lot for the update @EoghanBonass

shridharbhandiwad avatar Jul 04 '20 03:07 shridharbhandiwad