CVE-2021-23382Regex Denial of Service in Postcss

Severity
7.5HIGHNVD
EPSS
0.1%
top 78.52%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 26
Latest updateJan 7

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 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages4 packages

CVEListV5postcss/postcssunspecified8.2.13
NVDpostcss/postcss8.0.08.2.13+1
npmpostcss/postcss8.0.08.2.13+1
debiandebian/node-postcss< node-postcss 8.2.1+~cs5.3.23-7 (bookworm)

Patches

🔴Vulnerability Details

3
GHSA
Regular Expression Denial of Service in postcss2022-01-07
OSV
Regular Expression Denial of Service in postcss2022-01-07
OSV
CVE-2021-23382: The package postcss before 82021-04-26

📋Vendor Advisories

2
Red Hat
nodejs-postcss: ReDoS via getAnnotationURL() and loadAnnotation() in lib/previous-map.js2021-04-26
Debian
CVE-2021-23382: node-postcss - The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of...2021