GHSA-gqf6-75v8-vr26: Bin links Arbitrary File Write Vulnerability
LOWGHSA-gqf6-75v8-vr26 is a LOW arbitrary file write vulnerability (General Security Weakness) affecting Bin links libraries in the npm ecosystem. The issue involves arbitrary file write in bin-links. Remediation is available by upgrading affected packages to version 1.1.5.
GHSA-gqf6-75v8-vr26 at a Glance
How to Fix GHSA-gqf6-75v8-vr26
To remediate this vulnerability, upgrade all affected Bin links 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 bin-links@1.1.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls bin-links
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-gqf6-75v8-vr26, inspect your project dependencies using npm:
npm ls bin-links
Analyze the terminal output to locate any version of Bin links in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.5), your application is affected.
Note: The npm ls bin-links 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 Bin links, 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-gqf6-75v8-vr26 Affected Bin links Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bin-links
|
npm |
< 1.1.5
|
1.1.5
|
References
Frequently Asked Questions
What is GHSA-gqf6-75v8-vr26?
Which Bin links versions are affected?
What version fixes GHSA-gqf6-75v8-vr26?
Is bin-links affected?
What CWE is associated with GHSA-gqf6-75v8-vr26?
How can I check npm dependencies for GHSA-gqf6-75v8-vr26?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gqf6-75v8-vr26",
"modified" : "2020-08-31T18:58:56Z",
"published" : "2020-09-04T16:56:11Z",
"aliases" : [ ],
"summary" : "Arbitrary File Write in bin-links",
"details" : "Versions of `bin-links` prior to 1.1.5 are vulnerable to an Arbitrary File Write. The package fails to restrict access to folders outside of the intended `node_modules` folder through the `bin` field. This allows attackers to create arbitrary files in the system. Note it is not possible to overwrite files that already exist.\n\n\n## Recommendation\n\nUpgrade to version 1.1.5 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "bin-links"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1427"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:58:56Z",
"nvd_published_at" : null
}
}