GHSA-8whr-v3gm-w8h9: Duplicate Advisory Command Injection Vulnerability

HIGH
CVSS 8.1
CWE-78
Published
Advisory Summary

GHSA-8whr-v3gm-w8h9 is a HIGH (CVSS 8.1) command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves command injection in node-rules. Remediation is available by upgrading affected packages to version 5.0.0.

GHSA-8whr-v3gm-w8h9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8whr-v3gm-w8h9
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Duplicate Advisory
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:C/C:H/I:L/A:L).

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

How to Fix GHSA-8whr-v3gm-w8h9

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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-rules fixed: 5.0.0
npm install node-rules@5.0.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-rules

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-8whr-v3gm-w8h9, inspect your project dependencies using npm:

npm ls node-rules

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

Note: The npm ls node-rules 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-f78f-353m-cf4j. This link is maintained to preserve external references. ## Original Description Versions of `node-rules` prior to 5.0.0 are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to an `eval` call when using the `fromJSON` function. This may allow attackers to execute arbitrary code in the system if the rules are user-controlled. ## Recommendation Upgrade to version 5.0.0 or later.

GHSA-8whr-v3gm-w8h9 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
5.0.0
Product / Package Ecosystem Affected Versions Fixed Version
node-rules
npm
< 5.0.0
5.0.0

References

Frequently Asked Questions

What is GHSA-8whr-v3gm-w8h9?
GHSA-8whr-v3gm-w8h9 is a security vulnerability in Duplicate Advisory involving Command Injection in node-rules under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 5.0.0 across affected packages: node-rules.
What version fixes GHSA-8whr-v3gm-w8h9?
Upgrading to 5.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is node-rules affected?
Yes, node-rules is affected in releases prior to 5.0.0. Upgrade your dependency to 5.0.0 or later.
What is the CVSS score of GHSA-8whr-v3gm-w8h9?
GHSA-8whr-v3gm-w8h9 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L.
What CWE is associated with GHSA-8whr-v3gm-w8h9?
GHSA-8whr-v3gm-w8h9 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for GHSA-8whr-v3gm-w8h9?
Run the dependency tree command: 'npm ls node-rules'. 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-8whr-v3gm-w8h9",
  "modified" : "2026-01-23T22:49:42Z",
  "published" : "2020-09-03T15:51:04Z",
  "withdrawn" : "2026-01-23T22:49:42Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Command Injection in node-rules",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-f78f-353m-cf4j. This link is maintained to preserve external references.\n\n## Original Description\nVersions of `node-rules` prior to 5.0.0 are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to an `eval` call when using the `fromJSON` function. This may allow attackers to execute arbitrary code in the system if the rules are user-controlled.\n\n\n## Recommendation\n\nUpgrade to version 5.0.0 or later.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "node-rules"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mithunsatheesh/node-rules/issues/84"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mithunsatheesh/node-rules/commit/100862223904bb6478fcc33b701c7dee11f7b832"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mithunsatheesh/node-rules"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-NODERULES-560426"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T19:01:30Z",
    "nvd_published_at" : null
  }
}