Vulnerability in Postcss
CVE-2021-23382
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=(.*).
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS: 0.026 (85.1th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 85th percentile — 85.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.026 · newest: 0.026 · change: 0.000
Affected products
- Postcss
- Postcss — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- snyk.io/vuln/SNYK-JS-POSTCSS-1255640 (Exploit, Patch, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641 (Exploit, Patch, Third Party Advisory)
- github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-23382?
- CVE-2021-23382 is a medium-severity vulnerability in Postcss, classified under Inefficient Regular Expression Complexity. CVSS score: 5.3/10. Published 2021-04-26.
- How severe is CVE-2021-23382?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2021-23382 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.