cve.bz

CVE-2021-23382 postcss postcss

7.5 highExploit referenceEPSS 2.6%Fix available

High (7.5) in postcss postcss. EPSS 2.6% estimated probability of exploitation activity in the next 30 days. Fixed in postcss 7.0.36, 8.2.13.

On this page
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=(.*).

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-23382 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-23382?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-23382?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-23382 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postcss:postcssbefore 7.0.36
postcss:postcssfrom 8.0.0 before 8.2.13

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-566m-qj78-rww5npmpostcss>=8.0.0 <8.2.138.2.13
GHSA-566m-qj78-rww5npmpostcss<7.0.367.0.36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-postcss8.2.1+~cs5.3.23-7DEBIAN-CVE-2021-23382
Ubuntu20.04:LTS, 22.04:LTSnode-postcssno fix listedUBUNTU-CVE-2021-23382

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat OpenShift Container Platform (RHOCP), OpenShift ServiceMesh (OSSM) and Red Hat Advanced Cluster Management for Kubernetes (RHACM) the affected containers are behind OpenShift OAuth authentication. This restricts access to the vulnerable nodejs-postcss library to authenticated users only, therefore the impact is low.

Red Hat OpenShift Container Platform 4 delivers the kibana package where the nodejs-postcss library is used, but due to the code changing to the container first content the kibana package is marked as wontfix. This may be fixed in the future.

In Red Had Quay , whilst a vulnerable version of `postcss` is included in the quay-rhel8 container it is a development dependency only, therefor the impact is low.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.8openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.streamFixed 2021-07-27RHSA-2021:2438
Red Hat Quay 3quay/quay-rhel8:v3.6.0-62Fixed 2021-10-19RHSA-2021:3917
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Fix deferred
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-prometheusAffected
Red Hat Advanced Cluster Management for Kubernetes 2application-uiFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2console-headerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2console-uiNot affected
Red Hat Advanced Cluster Management for Kubernetes 2grc-uiAffected
Red Hat Advanced Cluster Management for Kubernetes 2mcm-topologyNot affected
Red Hat Advanced Cluster Management for Kubernetes 2search-uiFix deferred
Red Hat Ansible Automation Platform 1.2postcssNot affected
Red Hat OpenShift Container Platform 3.11kibanaNot affected
Red Hat OpenShift Container Platform 4golang-github-prometheus-prometheusFix deferred
Red Hat OpenShift Container Platform 4kibanaWill not fix
Red Hat OpenShift Container Platform 4openshift4/ose-grafanaFix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-logging-kibana6Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-thanos-rhel8Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-23382.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON