CVE-2021-33587: Denial of Service in css-what
Summary
CVE-2021-33587: Denial of service in css-what. Affects css-what versions >= 4.0.0, < 5.0.1. Fixed in 5.0.1. How to fix ↓
Also tracked for
- node-css-what · Debian:11
The same CVE-2021-33587 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The css-what package is a Node.js library used for parsing and stringifying CSS attribute selectors. It provides functionality to parse CSS attribute selectors and convert them into a structured format. The package is commonly used in web development projects that involve CSS manipulation and parsing. However, versions 4.0.0 through 5.0.0 of css-what for Node.js are vulnerable to a denial of service (DoS) attack.
Vulnerability Detail
The vulnerability in css-what (versions 4.0.0 through 5.0.0) is due to a lack of proper input validation and handling. Specifically, the package does not ensure that attribute parsing has linear time complexity relative to the size of the input. This can be exploited by an attacker to craft malicious input that triggers a DoS condition, causing the application to consume excessive resources or crash. The impact of this vulnerability can range from service disruption to complete unavailability of the affected application.
How To Fix
Minimum fixed version
5.0.1
This is the first release that contains the fix.
npm install css-what@5.0.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the package to mitigate the risk.
Conclusion
The css-what package (versions 4.0.0 through 5.0.0) for Node.js is vulnerable to a denial of service (DoS) attack. It is crucial to upgrade to version 5.0.1 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for css-what →
FAQ
css-what is a Node.js library used for parsing and stringifying CSS attribute selectors.
Versions 4.0.0 through 5.0.0 of css-what for Node.js are affected.
The vulnerability can lead to a denial of service (DoS) condition, causing service disruption or unavailability of the affected application.
To fix this vulnerability, upgrade the css-what package to version 5.0.1 or later.
No, there is no known workaround. Upgrading to the fixed version is necessary.
Related vulnerabilities
Recent vulnerabilities recorded for css-what.