GHSA-gqf6-75v8-vr26: Bin links Arbitrary File Write Vulnerability

LOW
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-gqf6-75v8-vr26
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Bin links
Package Ecosystem npm
Published Date
Last Updated

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.

bin-links fixed: 1.1.5
npm install bin-links@1.1.5
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 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

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

GHSA-gqf6-75v8-vr26 Affected Bin links Versions

1 component(s)
Fixed Versions:
1.1.5
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?
GHSA-gqf6-75v8-vr26 is a security vulnerability in Bin links involving Arbitrary File Write in bin-links under General Security Weakness.
Which Bin links versions are affected?
Affected versions include releases prior to 1.1.5 across affected packages: bin-links.
What version fixes GHSA-gqf6-75v8-vr26?
Upgrading to 1.1.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bin-links affected?
Yes, bin-links is affected in releases prior to 1.1.5. Upgrade your dependency to 1.1.5 or later.
What CWE is associated with GHSA-gqf6-75v8-vr26?
GHSA-gqf6-75v8-vr26 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-gqf6-75v8-vr26?
Run the dependency tree command: 'npm ls bin-links'. 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-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
  }
}