CVE-2021-23382 json
Regular Expression Denial of Service (ReDoS)
published 2021-04-26 5 y ago modified 2026-06-17 4 mo ago also GHSA-566m-qj78-rww5 , EUVD-2022-0459
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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=(.*).
Patch / fix
- npm postcss 7.0.36, 8.2.13
- n/a postcss 8.2.13
- node-postcss Debian 14, Debian 13, Debian 12 8.2.1+~cs5.3.23-7
debian advisories DEBIAN-CVE-2021-23382
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-23382 updated cvss 5.3
nodejs-postcss: ReDoS via getAnnotationURL() and loadAnnotation() in lib/previous-map.js
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/kibana6-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat Advanced Cluster Management for Kubernetes 2 search-ui, grc-ui-rhel8, application-uiaffected: no fix available “Fix deferred”
-
Red Hat OpenShift Container Platform 4 kibana, openshift4/ose-grafana, openshift4/ose-thanos-rhel9, openshift4/ose-logging-kibana6, golang-github-prometheus-prometheusaffected: no fix available, no fix planned “Will not fix”
-
Red Hat Quay v3 quay/quay-rhel8 v3.6.0-62fixed: vendor fix RHSA-2021:3917
-
Red Hat OpenShift Container Platform 4.8 openshift4/ose-console v4.8.0-202107010336.p0.git.188a490.assembly.streamfixed: vendor fix RHSA-2021:2438
-
Red Hat Quay v3 quay/clair-rhel8 v3.6.0-70, quay/quay-builder-rhel8 v3.6.0-44, quay/quay-operator-rhel8 v3.6.0-43, quay/quay-operator-bundle v3.6.0-48, quay/quay-bridge-operator-rhel8 v3.6.0-40, quay/quay-bridge-operator-bundle v3.6.0-35, +3 more Red Hat Advanced Cluster Management for Kubernetes 2 console-ui, mcm-topology, console-header Red Hat Ansible Automation Platform 1.2 postcss Red Hat OpenShift Container Platform 3.11 kibana Red Hat OpenShift Container Platform 4.8 openshift4/ose-cli v4.8.0-202106291725.p0.git.1077b05.assembly.stream, openshift4/ose-pod v4.8.0-202107161820.p0.git.051ac4f.assembly.stream, openshift4/ose-etcd v4.8.0-202106152230.p0.git.aefa6bf.assembly.stream, openshift4/ose-tests v4.8.0-202107131424.p0.git.0d958c3.assembly.stream, openshift4/ose-coredns v4.8.0-202106291913.p0.git.642b46e.assembly.stream, openshift4/ose-grafana v4.8.0-202106291913.p0.git.b987e4b.assembly.stream, +135 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.56% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | postcss | >=8.0.0, <8.2.13 <7.0.36 |
8.2.13 7.0.36 |
Affected products
- n/a postcss
Classification
References
-
github.com
/postcss/postcss/commit/2b1d04c867995e55124e0a165b7c6622c1735956
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-POSTCSS-1255640
web, exploit, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1255641
web, exploit, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23382
advisory
-
github.com
/postcss/postcss/releases/tag/7.0.36
web
Sources
- CVE List CVE-2021-23382
- GitHub Advisory GHSA-566m-qj78-rww5
- NVD CVE-2021-23382
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.