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

Published Apr 12, 2021
·
Updated

A regular expression denial of service (ReDoS) vulnerability was found in the npm library `postcss`. When parsing a supplied CSS string, if it contains an unexpected value then as the supplied CSS grows in length it will take an ever increasing amount of time to process. An attacker can use this vulnerability to potentially craft a malicious a long CSS value to process resulting in a denial of service.

Affected Software

3 affected componentsFixes available
redhat/postcss<8.2.10
8.2.10
PostCSS Postcss Node.js>=7.0.0<7.0.36
PostCSS Postcss Node.js>=8.0.0<8.2.10

Event History

Apr 12, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·01:50 PM
Data Sourced
via MITRE·01:50 PM
DescriptionSeverityWeakness
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-23368?

CVE-2021-23368 is a vulnerability found in the npm library `postcss` that allows for a regular expression denial of service (ReDoS) attack.

2

How does CVE-2021-23368 work?

CVE-2021-23368 works by exploiting a vulnerability in the way the postcss library parses a CSS string, causing a significant increase in processing time as the string grows.

3

What is the severity of CVE-2021-23368?

The severity of CVE-2021-23368 is medium, with a severity value of 5.3.

4

What software versions are affected by CVE-2021-23368?

The affected software versions include postcss versions up to and excluding 8.2.10, as well as node.js versions between 7.0.0 and 7.0.36 for the Postcss package.

5

How can I fix CVE-2021-23368?

To fix CVE-2021-23368, you should update the Postcss package to version 8.2.10 or later.

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