GitHub Advisoryadvisory · npm

GHSA-p28h-cc7q-c4fg css-what vulnerable to ReDoS due to use of insecure regular expression

HIGH Published 2022-10-01 Modified 2025-05-20 Official page ↗
Aliases
CVE-2022-21222
Ecosystem
npm
Packages
css-what
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1333, CWE-400
Reviewed
2022-10-04

Affected packages

• npm css-what: < 2.1.3 → fixed in 2.1.3

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.

Related

Alias · CVE (1)

  • CVE-2022-21222 The package css-what before 2.1.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular… vulnerability

Weakness · CWE (2)

  • CWE-1333 Inefficient Regular Expression Complexity weakness
  • CWE-400 Uncontrolled Resource Consumption weakness

References