Vulnerability · Published Apr 26, 2021 · Assigned by snyk
CVE-2021-23382Regular Expression Denial of Service (ReDoS)
Medium 5.3
In plain English
A medium-severity security flaw in postcss. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.6%top 14.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-postcss | 8.2.1+~cs5.3.23-7 | DEBIAN-CVE-2021-23382 |
| Debian:13 | node-postcss | 8.2.1+~cs5.3.23-7 | DEBIAN-CVE-2021-23382 |
| Debian:14 | node-postcss | 8.2.1+~cs5.3.23-7 | DEBIAN-CVE-2021-23382 |
| Ubuntu:22.04:LTS | node-postcss | no fix listed | UBUNTU-CVE-2021-23382 |
| npm | postcss | 8.2.13 | GHSA-566m-qj78-rww5 |
| npm | postcss | 7.0.36 | GHSA-566m-qj78-rww5 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 x_refsource_MISC
- https://github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 x_refsource_MISC