-
-
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
react-scripts - CVE-2021-3803 - react-script module nth-check denial of service CVSS 7.5 #13591
Comments
Description of the Bug The React app created using Create React App (CRA) has encountered a CSS issue after implementing React code splitting. When navigating to a code-split component for the first time, the CSS for that component is not applied. However, if the user navigates to another component and then returns, the CSS is correctly applied. Additionally, there is an inner dependency issue with react-scripts related to the nth-check module, version 1.0.2, which has a vulnerability as described in CVE-2021-3803. This vulnerability involves inefficient regular expression complexity. Yes, attempts to recover dependencies were made, but the issue persists.
Environment
Steps to Reproduce
Expected Behavior The CSS should be applied correctly the first time the code-split component is mounted. The CSS is not applied the first time the code-split component is mounted. It only applies after navigating away and then returning to the component. Here is a simplified version of the project setup: import React, { Suspense, lazy } from 'react'; const Search = lazy(() => import('./search/search')); function Parent() { Loading... }>); } export default Parent; function Search() { {/* Your search component code */} ); } export default Search; The react-scripts package includes an outdated version of the nth-check module, which is vulnerable to inefficient regular expression complexity as detailed in CVE-2021-3803. This issue needs to be addressed in an update to react-scripts to include a patched version of nth-check. |
Has this issue been resolved? I am currently facing the same problem. |
Any updates on this? |
I resolved nth-check vulnerability issue by using overrides in
|
I made this PR: #13778 It's focused on resolving the moderate/high vulnerabilities introduced by react-scripts for outdated dependencies that then point to outdated nth-check and postcss packages. |
Describe the bug
(Write your answer here.)
react-script inner dependency /embed module nth-check-1.0.2
https://nvd.nist.gov/vuln/detail/CVE-2021-3803
Did you try recovering your dependencies?
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
see above. kindly provide fixed in react-script update.
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
(Write what you thought would happen.)
Actual behavior
(Write what happened. Please add screenshots!)
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: