Vulnerability · Published Apr 26, 2021 · Assigned by snyk

CVE-2021-23382Regular Expression Denial of Service (ReDoS)

Medium 5.3

In plain English

A medium-severity security flaw in postcss. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.6%top 14.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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=(.*).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-postcss8.2.1+~cs5.3.23-7DEBIAN-CVE-2021-23382
Debian:13node-postcss8.2.1+~cs5.3.23-7DEBIAN-CVE-2021-23382
Debian:14node-postcss8.2.1+~cs5.3.23-7DEBIAN-CVE-2021-23382
Ubuntu:22.04:LTSnode-postcssno fix listedUBUNTU-CVE-2021-23382
npmpostcss8.2.13GHSA-566m-qj78-rww5
npmpostcss7.0.36GHSA-566m-qj78-rww5

Affected products (as reported)

VendorProductVersions
n/a postcss unspecified – before 8.2.13

References