GHSA-9v62-24cr-58cx: Node sass Denial of Service Vulnerability

MODERATE
CVSS 5.9
CWE-400
Published
Advisory Summary

GHSA-9v62-24cr-58cx is a MODERATE (CVSS 5.9) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Node sass libraries in the npm ecosystem. The issue involves denial of service in node-sass. Remediation is available by upgrading affected packages to version 4.13.1.

GHSA-9v62-24cr-58cx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9v62-24cr-58cx
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Node sass
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix GHSA-9v62-24cr-58cx

To remediate this vulnerability, upgrade all affected Node sass dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

node-sass fixed: 4.13.1
npm install node-sass@4.13.1
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 node-sass

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-9v62-24cr-58cx, inspect your project dependencies using npm:

npm ls node-sass

Analyze the terminal output to locate any version of Node sass in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.13.1), your application is affected.

Note: The npm ls node-sass 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Node sass, 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

Affected versions of `node-sass` are vulnerable to Denial of Service (DoS). Crafted objects passed to the `renderSync` function may trigger C++ assertions in `CustomImporterBridge::get_importer_entry` and `CustomImporterBridge::post_process_return_value` that crash the Node process. This may allow attackers to crash the system's running Node process and lead to Denial of Service. ## Recommendation Upgrade to version 4.13.1 or later

GHSA-9v62-24cr-58cx Affected Node sass Versions

1 component(s)
Fixed Versions:
4.13.1
Product / Package Ecosystem Affected Versions Fixed Version
node-sass
npm
≥ 3.3.0
< 4.13.1
4.13.1

References

Frequently Asked Questions

What is GHSA-9v62-24cr-58cx?
GHSA-9v62-24cr-58cx is a security vulnerability in Node sass involving Denial of Service in node-sass under CWE-400: Uncontrolled Resource Consumption.
Which Node sass versions are affected?
Affected versions include releases prior to 4.13.1 across affected packages: node-sass.
What version fixes GHSA-9v62-24cr-58cx?
Upgrading to 4.13.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-sass affected?
Yes, node-sass is affected in releases prior to 4.13.1. Upgrade your dependency to 4.13.1 or later.
What is the CVSS score of GHSA-9v62-24cr-58cx?
GHSA-9v62-24cr-58cx has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with GHSA-9v62-24cr-58cx?
GHSA-9v62-24cr-58cx is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for GHSA-9v62-24cr-58cx?
Run the dependency tree command: 'npm ls node-sass'. 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-9v62-24cr-58cx",
  "modified" : "2021-09-28T16:08:17Z",
  "published" : "2020-09-11T21:12:39Z",
  "aliases" : [ ],
  "summary" : "Denial of Service in node-sass",
  "details" : "Affected versions of `node-sass` are vulnerable to Denial of Service (DoS). Crafted objects passed to the `renderSync` function may trigger C++ assertions in `CustomImporterBridge::get_importer_entry` and `CustomImporterBridge::post_process_return_value` that crash the Node process. This may allow attackers to crash the system's running Node process and lead to Denial of Service.\n\n\n## Recommendation\n\nUpgrade to version 4.13.1 or later",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-sass"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "4.13.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sass/node-sass/commit/338fd7a14d3b8bd374a382336df16f9c6792b884"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sass/node-sass"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/961"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:42:06Z",
    "nvd_published_at" : null
  }
}