GHSA-8whr-v3gm-w8h9: Duplicate Advisory Command Injection Vulnerability
HIGHGHSA-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
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).
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.
npm install node-rules@5.0.0
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
GHSA-8whr-v3gm-w8h9 Affected Duplicate Advisory Versions
1 component(s)| 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?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-8whr-v3gm-w8h9?
Is node-rules affected?
What is the CVSS score of GHSA-8whr-v3gm-w8h9?
What CWE is associated with GHSA-8whr-v3gm-w8h9?
How can I check npm dependencies for GHSA-8whr-v3gm-w8h9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}