"How do I resolve multiple vulnerabilities in my React project (PostCSS, nth-check, etc.)? I'm new to this and could use some help!"

Posted by CaterpillarIcy8646@reddit | learnprogramming | View on Reddit | 7 comments

Hi everyone, I'm pretty new to working with React and managing dependencies, and I could really use some guidance on how to fix some vulnerabilities that have popped up in my project. When I run npm audit, I get the following vulnerabilities:

  1. nth-check <2.0.1
  2. High severity: Inefficient Regular Expression Complexity in nth-check.
  3. It's used by u/svgr/webpack, which is part of react-scripts.
  4. PostCSS <8.4.31
  5. Moderate severity: PostCSS line return parsing error.
  6. It's used by resolve-url-loader, which is also part of react-scripts.

What I've Tried So Far:

Questions:

I have tried to look for dependancy mismatches using npx expo doctor, npx expo install --check and asking chat gpt.

Thanks in advance for your help!