GHSA-q9r2-f3vc-rjg8: Macaddress Command Injection Vulnerability
HIGHGHSA-q9r2-f3vc-rjg8 is a HIGH command injection vulnerability (General Security Weakness) affecting Macaddress libraries in the npm ecosystem. The issue involves command injection in macaddress. Remediation is available by upgrading affected packages to version 0.2.9.
GHSA-q9r2-f3vc-rjg8 at a Glance
How to Fix GHSA-q9r2-f3vc-rjg8
To remediate this vulnerability, upgrade all affected Macaddress 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 macaddress@0.2.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls macaddress
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-q9r2-f3vc-rjg8, inspect your project dependencies using npm:
npm ls macaddress
Analyze the terminal output to locate any version of Macaddress in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.9), your application is affected.
Note: The npm ls macaddress 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 General Security Weakness. In Macaddress, 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-q9r2-f3vc-rjg8 Affected Macaddress Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
macaddress
|
npm |
< 0.2.9
|
0.2.9
|
References
Frequently Asked Questions
What is GHSA-q9r2-f3vc-rjg8?
Which Macaddress versions are affected?
What version fixes GHSA-q9r2-f3vc-rjg8?
Is macaddress affected?
What CWE is associated with GHSA-q9r2-f3vc-rjg8?
How can I check npm dependencies for GHSA-q9r2-f3vc-rjg8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q9r2-f3vc-rjg8",
"modified" : "2020-08-19T22:28:51Z",
"published" : "2020-08-19T22:28:51Z",
"withdrawn" : "2020-08-19T22:28:51Z",
"aliases" : [ ],
"summary" : "Command Injection in macaddress",
"details" : "Withdrawn: Duplicate of GHSA-pp57-mqmh-44h7",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "macaddress"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.9"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://hackerone.com/reports/319467"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-12T16:32:29Z",
"nvd_published_at" : null
}
}