CVE-2021-23382: Regular Expression Denial of Service (ReDoS)
Vulnerability summary
CVE-2021-23382 is a high (CVSS 7.5) vulnerability in postcss. EPSS estimates a 2.58% chance of exploitation in the next 30 days, higher than 85.7% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 26-04-2021PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
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 metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
EPSS trend
Probability
2.58%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 2.56% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (snyk.io)
Maturity: unknown
Exploit Reference (snyk.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- node-postcss< 8.2.1+~cs5.3.23-7
Npm1 product
- postcss≥ 8.0.0, < 8.2.13 | < 7.0.36
Postcss1 product
- postcss< 7.0.36 | ≥ 8.0.0, < 8.2.13
Ubuntu1 product
- node-postcssAll versions (No fix recorded)
4 vendors · 4 products
References
9 links- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641X Refsource MISCREPORTWEBExploitPatchThird Party Advisory
- github.com/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956X Refsource MISCREPORTWEBPatchThird Party Advisory