nth-check@1.0.2 vulnerabilities

Parses and compiles CSS nth-checks to highly optimized functions.

Direct Vulnerabilities

Known vulnerabilities in the nth-check 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
  • H
Regular Expression Denial of Service (ReDoS)

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when parsing crafted invalid CSS nth-checks, due to the sub-pattern \s*(?:([+-]?)\s*(\d+))? in RE_NTH_ELEMENT with quantified overlapping adjacency.

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

Upgrade nth-check to version 2.0.1 or higher.

<2.0.1