CVE-2021-23382
Regular Expression Denial of Service (ReDoS)
Reported by snyk · Published April 26, 2021
postcss is fixed in 8.2.13 and 7.0.36 (npm)
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=(.*).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| postcss | npm | 8.2.13, 7.0.36 |
| postcss | postcss | 8.2.13, 7.0.36 |
| postcss | n/a | 8.2.13 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | postcss | unspecified |
| n/a | postcss | * |
| postcss | postcss | |
| npm | postcss | 0, 8.0.0 |
Timeline
- Apr 26, 2021 CVE Published
- Apr 27, 2021 EPSS Score (30 in total, the first dated here)
- Jan 14, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (3 in total, the first dated here)
- Jul 23, 2026 Distribution Patch
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23382
vulnetix vdb fixes CVE-2021-23382
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23382/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-23382 advisory