Description
The package postcss versions before 7.0.36 or between 8.0.0 and 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern
Recommendation
Update the postcss package to the latest compatible version. Followings are version details:
Affected version(s): **< 7.0.36 >= 8.0.0, < 8.2.13** Patched version(s): **7.0.36 8.2.13**
References
Related Issues
- Regular Expression Denial of Service in postcss (GHSA-hwj9-h5mp-3pm3) - CVE-2021-23368
- Regular Expression Denial of Service (ReDoS) (GHSA-vx3p-948g-6vhq) - CVE-2021-27290
- Regular expression denial of service in jquery-validation (GHSA-j9m2-h2pv-wvph) - CVE-2021-43306
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) - CVE-2021-23346
- Tags:
- npm
- postcss
Anything's wrong? Let us know Last updated on September 08, 2023