GHSA-wxhq-pm8v-cw75: Clean css Denial of Service Vulnerability

LOW
CWE-1333
Published
Advisory Summary

GHSA-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.

GHSA-wxhq-pm8v-cw75 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-wxhq-pm8v-cw75
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Clean css
Package Ecosystem npm
Published Date
Last Updated

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.

clean-css fixed: 4.1.11
npm install clean-css@4.1.11
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 4.1.11 or higher.

GHSA-wxhq-pm8v-cw75 Affected Clean css Versions

1 component(s)
Fixed Versions:
4.1.11
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?
GHSA-wxhq-pm8v-cw75 is a security vulnerability in Clean css involving Regular Expression Denial of Service in clean-css under CWE-1333: Inefficient Regular Expression Complexity.
Which Clean css versions are affected?
Affected versions include releases prior to 4.1.11 across affected packages: clean-css.
What version fixes GHSA-wxhq-pm8v-cw75?
Upgrading to 4.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clean-css affected?
Yes, clean-css is affected in releases prior to 4.1.11. Upgrade your dependency to 4.1.11 or later.
What CWE is associated with GHSA-wxhq-pm8v-cw75?
GHSA-wxhq-pm8v-cw75 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for GHSA-wxhq-pm8v-cw75?
Run the dependency tree command: 'npm ls clean-css'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}