Vulnerability library
Security checkMay 20, 2025

css-what vulnerable to ReDoS due to use of insecure regular expression

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmcss-what

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The package css-what before 2.1.3 is vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.

Recommendation

Update the css-what package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.1.3
  • Patched version(s): 2.1.3

References

Could your website be exposed too?

SmartScanner can check your website for css-what vulnerable to ReDoS due to use of insecure regular expression and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 20, 2025