Regular expression denial of service (ReDoS) in postcss
Priority LOW 38CWE-1333Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 fixed, 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
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=(.*).
Why it matters now
EPSS 0.02557 85th percentileScored 2026-11-07
Fix Partial postcss: 8.2.13postcss (npm): 8.2.13, 7.0.36Red Hat: 2 advisoriesRed Hat: 2 fixed, 4 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | postcss | before 8.2.13 | 8.2.13 | Patch available | CNA |
| — | postcss (npm) | 8.0.0 to before 8.2.13 | 8.2.13 | Patch available | GHSA-566m-qj78-rww5 |
| — | postcss (npm) | before 7.0.36 | 7.0.36 | Patch available | GHSA-566m-qj78-rww5 |
- postcss Vendor— Affected before 8.2.13 Fixed in 8.2.13 Patch available CNA
- postcss (npm) Vendor— Affected 8.0.0 to before 8.2.13 Fixed in 8.2.13 Patch available GHSA-566m-qj78-rww5
- postcss (npm) Vendor— Affected before 7.0.36 Fixed in 7.0.36 Patch available GHSA-566m-qj78-rww5
Remediation
- Fix · CNA postcss Fixed in 8.2.13
- Fix · GHSA-566m-qj78-rww5 postcss (npm) Fixed in 8.2.13 Advisory →
- Fix · GHSA-566m-qj78-rww5 postcss (npm) Fixed in 7.0.36 Advisory →
Red Hat 2 advisories
- RHSA-2021:3917 Released 2021-10-19 · Red Hat rating ImportantRed Hat Quay v3.6.0 security, bug fix and enhancement update
- Quay v3 quay/quay-rhel8
- RHSA-2021:2438 Released 2021-07-27 · Red Hat rating ModerateOpenShift Container Platform 4.8.2 bug fix and security update
- Red Hat OpenShift Container Platform 4.8 openshift4/driver-toolkit-rhel8, openshift4/egress-router-cni-rhel8, openshift4/network-tools-rhel8 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Logging Subsystem for Red Hat OpenShift | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 2.0 | Affected | No fix yet |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Quay v3 | Fixed | RHSA-2021:3917 |
| Red Hat OpenShift Container Platform 4.8 | Fixed | RHSA-2021:2438 |
Not affected: 5 products
- Quay v3
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Ansible Automation Platform 1.2
- Red Hat OpenShift Container Platform 3.11
- Red Hat OpenShift Container Platform 4.8
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23382
- 2026-10-03 Alias added: GHSA-566m-qj78-rww5
References
More Postcss vulnerabilities
- TI-2026-33367 PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments CVSS 3.1CRITICAL 9.1
- TI-2026-48533 Information disclosure in postcss CVSS 4.0MEDIUM 6.3
- TI-2023-23794 An issue was discovered in PostCSS before 8.4.31. CVSS 3.1MEDIUM 5.3
- TI-2021-06061 Regular expression denial of service (ReDoS) in postcss CVSS 3.1MEDIUM 5.3
Sources
- CVE-2021-23382 · CVE Program
- CVE-2021-23382 · NVD
- FIRST EPSS
- GHSA-566m-qj78-rww5 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-23382 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences