css-what@2.0.2 vulnerabilities

a CSS selector parser

Direct Vulnerabilities

Known vulnerabilities in the css-what package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Regular Expression Denial of Service (ReDoS)

css-what is an a CSS selector parser

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expression in the re_attr variable of index.js. The exploitation of this vulnerability could be triggered via the parse function.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade css-what to version 2.1.3 or higher.

<2.1.3