CVE-2021-23382
Regular Expression Denial of Service in postcss
5.3
MEDIUM
CVSS 3.1
EPSS 0.07%
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=(.*).
How to fix CVE-2021-23382
To remediate CVE-2021-23382, upgrade the affected package to a fixed version below.
- —upgrade to 8.2.1+~cs5.3.23-7 or later
- —upgrade to 8.2.13 or later
Is CVE-2021-23382 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 8.2.1+~cs5.3.23-7
- >= 8.0.0, < 8.2.13
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |