GHSA-v45m-2wcp-gg98: Bin links Global Node_modules Binary Overwrite Vulnerability

LOW
Published
Advisory Summary

GHSA-v45m-2wcp-gg98 is a LOW global node_modules binary overwrite vulnerability (General Security Weakness) affecting Bin links libraries in the npm ecosystem. The issue involves global node_modules binary overwrite in bin-links. Remediation is available by upgrading affected packages to version 1.1.6.

GHSA-v45m-2wcp-gg98 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v45m-2wcp-gg98
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-v45m-2wcp-gg98

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.6
npm install bin-links@1.1.6
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-v45m-2wcp-gg98, 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.6), 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.6 are vulnerable to a Global node_modules Binary Overwrite. It fails to prevent globally-installed binaries to be overwritten by other package installs. For example, if a package was installed globally and created a `serve` binary, any subsequent installs of packages that also create a `serve` binary would overwrite the first binary. This behavior is still allowed in local installations. ## Recommendation Upgrade to version 1.1.6 or later.

GHSA-v45m-2wcp-gg98 Affected Bin links Versions

1 component(s)
Fixed Versions:
1.1.6
Product / Package Ecosystem Affected Versions Fixed Version
bin-links
npm
< 1.1.6
1.1.6

References

Frequently Asked Questions

What is GHSA-v45m-2wcp-gg98?
GHSA-v45m-2wcp-gg98 is a security vulnerability in Bin links involving Global node_modules Binary Overwrite in bin-links under General Security Weakness.
Which Bin links versions are affected?
Affected versions include releases prior to 1.1.6 across affected packages: bin-links.
What version fixes GHSA-v45m-2wcp-gg98?
Upgrading to 1.1.6 (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.6. Upgrade your dependency to 1.1.6 or later.
What CWE is associated with GHSA-v45m-2wcp-gg98?
GHSA-v45m-2wcp-gg98 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-v45m-2wcp-gg98?
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-v45m-2wcp-gg98",
  "modified" : "2020-08-31T18:59:19Z",
  "published" : "2020-09-04T17:18:44Z",
  "aliases" : [ ],
  "summary" : "Global node_modules Binary Overwrite in bin-links",
  "details" : "Versions of  `bin-links` prior to 1.1.6 are vulnerable to a Global node_modules Binary Overwrite. It fails to prevent globally-installed binaries to be overwritten by other package installs. For example, if a package was installed globally and created a `serve` binary, any subsequent installs of packages that also create a `serve` binary would overwrite the first binary. This behavior is still allowed in local installations.\n\n\n## Recommendation\n\nUpgrade to version 1.1.6 or later.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "bin-links"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/1438"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:59:19Z",
    "nvd_published_at" : null
  }
}