GHSA-j9f8-8h89-j69x: Node os utils Remote Code Execution Vulnerability

HIGH
CVSS 7.3
CWE-94
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-j9f8-8h89-j69x
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Node os utils
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

node-os-utils fixed: 1.1.0
npm install node-os-utils@1.1.0
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-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

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. ## Recommendation Upgrade to version 1.1.0 or later.

GHSA-j9f8-8h89-j69x Affected Node os utils Versions

1 component(s)
Fixed Versions:
1.1.0
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?
GHSA-j9f8-8h89-j69x is a security vulnerability in Node os utils involving Remote Code Execution in node-os-utils under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Node os utils versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: node-os-utils.
What version fixes GHSA-j9f8-8h89-j69x?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-os-utils affected?
Yes, node-os-utils is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of GHSA-j9f8-8h89-j69x?
GHSA-j9f8-8h89-j69x has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with GHSA-j9f8-8h89-j69x?
GHSA-j9f8-8h89-j69x is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check npm dependencies for GHSA-j9f8-8h89-j69x?
Run the dependency tree command: 'npm ls node-os-utils'. 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-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
  }
}