Vulnerability record · CVE-2021-23382 · published 26 April 2021
CVE-2021-23382: Postcss inefficient regular expression (redos) vulnerability
Postcss · Postcss
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=(.*).
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=(.*).
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 | ExploitPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 | ExploitPatchThird Party Advisory |
| https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 | ExploitPatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 | ExploitPatchThird Party Advisory |
Track CVE-2021-23382 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-23382), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.