GHSA-9v62-24cr-58cx: Node sass Denial of Service Vulnerability
MODERATEGHSA-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
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).
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.
npm install node-sass@4.13.1
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
GHSA-9v62-24cr-58cx Affected Node sass Versions
1 component(s)| 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?
Which Node sass versions are affected?
What version fixes GHSA-9v62-24cr-58cx?
Is node-sass affected?
What is the CVSS score of GHSA-9v62-24cr-58cx?
What CWE is associated with GHSA-9v62-24cr-58cx?
How can I check npm dependencies for GHSA-9v62-24cr-58cx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}