React-Scripts dependencies with CVEs
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
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]
+1 for yargs-parser
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
any version of react-scripts package without this vulnerability?
any fix planned for yargs-parser ?
Please file with webpack-dev-server about yargs-parser. There's nothing we can from our end to update their dependencies.
There is a webpack-dev-server issue: https://github.com/webpack/webpack-dev-server/issues/2559
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
When might we expect the next release of react-scripts?
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
@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?
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.
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 guidanceLow 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
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.`
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
I am having the same issue, any updates on this?
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
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.
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 forlodash. This PRhttps://github.com/lodash/lodash/pull/4759has 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.
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 forlodash. This PRhttps://github.com/lodash/lodash/pull/4759has 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