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

Published Apr 26, 2021
·
Updated

A regular expression denial of service (ReDoS) vulnerability was found in the npm library `postcss` when using getAnnotationURL() or loadAnnotation() options in lib/previous-map.js. An attacker can use this vulnerability to potentially craft a malicious CSS to process resulting in a denial of service.

Affected Software

5 affected componentsFixes available
npm/postcss<7.0.36
7.0.36
npm/postcss>=8.0.0<8.2.13
8.2.13
redhat/postcss<8.2.13
8.2.13
PostCSS Postcss Node.js<7.0.36
PostCSS Postcss Node.js>=8.0.0<8.2.13

Event History

Apr 26, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·03:30 PM
Data Sourced
via MITRE·03:30 PM
DescriptionSeverityWeakness
Jan 7, 2022
Advisory Published
12:21 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-23382?

CVE-2021-23382 refers to a vulnerability in the package postcss before version 8.2.13 that allows Regular Expression Denial of Service (ReDoS) attacks via getAnnotationURL() and loadAnnotation() in lib/previous-map.js.

2

How does CVE-2021-23382 affect postcss?

CVE-2021-23382 affects postcss versions before 7.0.36 or between 8.0.0 and 8.2.13.

3

What is the severity level of CVE-2021-23382?

CVE-2021-23382 has a severity level of 7.5 (high).

4

How can I fix CVE-2021-23382?

To fix CVE-2021-23382, update postcss package to version 7.0.36 or higher, or between 8.2.13 and the latest version.

5

Where can I find more information about CVE-2021-23382?

You can find more information about CVE-2021-23382 at the following references: - https://www.cve.org/CVERecord?id=CVE-2021-23382 - https://nvd.nist.gov/vuln/detail/CVE-2021-23382 - https://snyk.io/vuln/SNYK-JS-POSTCSS-1255640 - https://bugzilla.redhat.com/show_bug.cgi?id=1954150 - https://access.redhat.com/errata/RHSA-2021:3016

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203