What’s Vulnerable › Vulnerabilities

CVE-2021-23382: Regular Expression Denial of Service (ReDoS)

Description

The package postcss before 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 \/\*\s* sourceMappingURL=(.*).

Affected products

How to fix

Upgrade to a fixed version: postcss 7.0.36, 8.2.13; Npm Postcss 8.2.13, 7.0.36. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-23382 or the next vulnerability affects your stack