CVE-2022-21222
Css-what Project Css-what vulnerability
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.
Affected products
Css-what. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Css-what Project Css-what runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js%23L12 · Third Party Advisory
- security.snyk.io/vuln/SNYK-JS-CSSWHAT-3035488 · Exploit
- lists.debian.org/debian-lts-announce/2023/03/msg00001.html
- nvd.nist.gov/vuln/detail/CVE-2022-21222
- github.com/fb55/css-what/commit/dc510929790da6617e7aa93a616498b22f6a6b72
- github.com/fb55/css-what/blob/a38effd5a8f5506d75c7f8f13cbd8c76248a3860/index.js#23L12
- github.com/advisories/GHSA-p28h-cc7q-c4fg
- nvd.nist.gov/vuln/detail/CVE-2022-21222
- cve.org/CVERecord?id=CVE-2022-21222
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.