Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-23382 EUVD-2022-0459GHSA-566m-qj78-rww5

Regular Expression Denial of Service (ReDoS)

Published Apr 26, 2021 · Updated Sep 16, 2024 · Assigned by snyk

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 products

VendorProductAffectedFixed
— postcss unspecified – < 8.2.13 8.2.13

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-postcss 8.2.1+~cs5.3.23-7 —
Debian 13 node-postcss 8.2.1+~cs5.3.23-7 —
Debian 12 node-postcss 8.2.1+~cs5.3.23-7 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS node-postcss No fix yet —
Ubuntu 20.04 LTS node-postcss No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm postcss >= 8.0.0, < 8.2.13 8.2.13 GHSA-566m-qj78-rww5
npm postcss < 7.0.36 7.0.36 GHSA-566m-qj78-rww5

Advisories 3

References