Vulnerabilities in pkg:npm/clean-css
PACKAGEGHSA-wxhq-pm8v-cw75 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Clean css libraries in the npm ecosystem. The issue involves regular expression denial of service in clean-css. Remediation is available by upgrading affected packages to version 4.1.11.
pkg:npm/clean-css
Vulnerability advisories affecting package pkg:npm/clean-css. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wxhq-pm8v-cw75 | - | LOW | Regular Expression Denial of Service in clean-css |
GHSA-wxhq-pm8v-cw75 at a Glance
How to Fix GHSA-wxhq-pm8v-cw75
To remediate this vulnerability, upgrade all affected Clean css dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install clean-css@4.1.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls clean-css
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-wxhq-pm8v-cw75, inspect your project dependencies using npm:
npm ls clean-css
Analyze the terminal output to locate any version of Clean css in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.11), your application is affected.
Note: The npm ls clean-css command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Clean css, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-wxhq-pm8v-cw75 Affected Clean css Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
clean-css
|
npm |
< 4.1.11
|
4.1.11
|
References
Frequently Asked Questions
What is GHSA-wxhq-pm8v-cw75?
Which Clean css versions are affected?
What version fixes GHSA-wxhq-pm8v-cw75?
Is clean-css affected?
What CWE is associated with GHSA-wxhq-pm8v-cw75?
How can I check npm dependencies for GHSA-wxhq-pm8v-cw75?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wxhq-pm8v-cw75",
"modified" : "2020-08-31T18:35:40Z",
"published" : "2019-06-05T20:50:16Z",
"aliases" : [ ],
"summary" : "Regular Expression Denial of Service in clean-css",
"details" : "Version of `clean-css` prior to 4.1.11 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.\n\n\n## Recommendation\n\nUpgrade to version 4.1.11 or higher.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "clean-css"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.1.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jakubpawlowicz/clean-css/commit/2929bafbf8cdf7dccb24e0949c70833764fa87e3"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/785"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-05T20:49:47Z",
"nvd_published_at" : null
}
}