-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulnerability in react-scripts > @svgr/webpack > @svgr/plugin-svgo > svgo > css-select > nth-check & css-what #12132
Comments
Hi, any updates on when the package will be updated? |
Hi, I am also facing the same issue. When I upgrading react-scripts to 5.0.0 version. While npm audit I am getting the same Vulnerability Error. Error: FYI, Upgrade react-scripts to have the @@svgr/webpack@6. as the dependency. As the current @svgr/[email protected] has following vulnerable versions as dependency. Thanks & Regards, |
same here...
I'm using react-scripts 5.0.0
|
the vulnerable dependency is dependent of [email protected]
|
The vulnerable dependency is caused by svg-term-cli |
@marionebl any feedback on svg-term-cli ? |
Have you guys read this stickied issue? |
moving the dependency to dev makes the vulnerability only dependent of svgr/webpack
followed-up here #12146 |
Hi, any updates on when the package will be updated? |
Read this: #11174 ...then wait, there are more important things than fixing false positives. It will be fixed at the next scheduled update or when a critical bug appears. |
Fair enough |
Is there any ETA for nth-check & css-what vulnerabilities? |
Move react-scripts into dev-dependencies. see facebook/create-react-app#12132.
While this issue is not fixed, I did a workaround to solve it. The problem seems to be starting with the lib If you are using node >= 16, you can install After that, you should create a And last, you must remove your This worked for me :) |
thanks, bro |
i was getting mad, thanks bro! it worked perfect. if there's a newbie like me there, you can install the dependency with this line:
|
In my case, "overrides": { |
"To make this limitation easier to deal with, overrides may also be defined as a reference to a spec for a direct dependency by prefixing the name of the package you wish the version to match with a $" https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides |
Best solution: "overrides": {
"nth-check": "2.0.1"
}, |
Is there any ETA for this? |
Any update? |
npm install --save-dev webpack@ edit the version to the required one. |
Any update? |
- per this issue facebook/create-react-app#12132
- per this issue facebook/create-react-app#12132
If you move react-scripts in "devDependencies", The best explanation of why everything is in "dependencies" is here. But in fact, it matters when running |
- should get a rid of a high severity security issue with a dev dependency. nth-check is vulnerable to Inefficient Regular Expression Complexity. - see facebook/create-react-app#12132 for more info
- should get a rid of a high severity security issue with a dev dependency. nth-check is vulnerable to Inefficient Regular Expression Complexity. - see facebook/create-react-app#12132 for more info
- should get a rid of a high severity security issue with a dev dependency. nth-check is vulnerable to Inefficient Regular Expression Complexity. - see facebook/create-react-app#12132 for more info
…reate-react-app#12132 (comment) but still seeing `warning Resolution field "$@svgr/webpack" has an invalid version entry and may be ignored` during `yarn install`
…cebook/create-react-app#12132 (comment) but still seeing `warning Resolution field "$@svgr/webpack" has an invalid version entry and may be ignored` during `yarn install`" This reverts commit 9ab4261.
Describe the bug
Upgrade react-scripts to have the @@svgr/webpack@6.* as the dependency. As the current @svgr/[email protected] has following vulnerable versions as dependency.
nth-check - https://security.snyk.io/vuln/SNYK-JS-NTHCHECK-1586032
css-what - https://security.snyk.io/vuln/SNYK-JS-CSSWHAT-1298035
Below is the dependency tree:
+-- [email protected]
├─┬ @svgr/[email protected]
│ └─┬ @svgr/[email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└──[email protected]
Environment
Environment Info:
current version of create-react-app: 5.0.0
System:
OS: Windows 7 6.1.7601
CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1585L v5 @ 3.00GHz
Binaries:
Node: 14.17.6 - ...\tools\nodejs14-win7\latest\node.EXE
Yarn: Not Found
npm: 8.2.0 - ...\data\npm14\npm.CMD
Browsers:
Chrome: 97.0.4692.71
Internet Explorer: 11.0.9600.20139
Steps to reproduce
npx create-react-app
Expected behavior
The react-scripts should not be having any dependency on vulnerable components.
Actual behavior
The dependent package @svgr/webpack 5.5.0 refers to vulnerable components, as per the author the v6 has the fix for the same.
The text was updated successfully, but these errors were encountered: