CVE-2022-21222
css-what vulnerable to ReDoS due to use of insecure regular expression
7.5
HIGH
CVSS 3.1
EPSS 0.27%
Description
The package css-what before 2.1.3 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 CVE-2022-21222
To remediate CVE-2022-21222, upgrade the affected package to a fixed version below.
- —upgrade to 4.0.0-3+deb11u1 or later
- —upgrade to 2.1.3 or later
Is CVE-2022-21222 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 4.0.0-3+deb11u1
- from 0, < 2.1.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |