GHSA-j9f8-8h89-j69x: Node os utils Remote Code Execution Vulnerability
HIGHGHSA-j9f8-8h89-j69x is a HIGH (CVSS 7.3) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Node os utils libraries in the npm ecosystem. The issue involves remote code execution in node-os-utils. Remediation is available by upgrading affected packages to version 1.1.0.
GHSA-j9f8-8h89-j69x at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix GHSA-j9f8-8h89-j69x
To remediate this vulnerability, upgrade all affected Node os utils 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-os-utils@1.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls node-os-utils
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-j9f8-8h89-j69x, inspect your project dependencies using npm:
npm ls node-os-utils
Analyze the terminal output to locate any version of Node os utils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.
Note: The npm ls node-os-utils 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Node os utils, 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-j9f8-8h89-j69x Affected Node os utils Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
node-os-utils
|
npm |
< 1.1.0
|
1.1.0
|
References
Frequently Asked Questions
What is GHSA-j9f8-8h89-j69x?
Which Node os utils versions are affected?
What version fixes GHSA-j9f8-8h89-j69x?
Is node-os-utils affected?
What is the CVSS score of GHSA-j9f8-8h89-j69x?
What CWE is associated with GHSA-j9f8-8h89-j69x?
How can I check npm dependencies for GHSA-j9f8-8h89-j69x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j9f8-8h89-j69x",
"modified" : "2021-08-04T21:06:49Z",
"published" : "2019-06-11T16:16:34Z",
"aliases" : [ ],
"summary" : "Remote Code Execution in node-os-utils",
"details" : "Versions of `node-os-utils` prior to 1.1.0 are vulnerable to Remote Code Execution. Due to insufficient input validation an attacker could run arbitrary commands on the server thus rendering the package vulnerable to Remote Code Execution.\n\n\n## Recommendation\n\nUpgrade to version 1.1.0 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "node-os-utils"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SunilWang/node-os-utils/issues/2"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-NODEOSUTILS-173696"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/784"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-11T16:08:05Z",
"nvd_published_at" : null
}
}