Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bin-links

Latest version: v5.0.1

Overview

Last scanned
26 Oct 2026
Published
26 Oct 2026
npm package Publisher: martinrrm, npm-cli-ops, reggi, saquibkhan
31 Stars
19 Forks
3 Versions
28.0M Downloads
JavaScript Repo language

Scan summary

bin-links was last scanned on 26 Oct 2026 at version 5.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published within 6 days (21–26 Oct 2026).
  • Findings: No rules fired in version 5.0.1.
  • Downloads: 28,045,822 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.0.1 LATEST 26 Oct 2026 No rules fired
7.0.1 21 Oct 2026 No rules fired
6.0.2 20 May 2026 Not shown

No rules fired in 5.0.1

Findings

Findings for v5.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.0.1; other versions have their own rules, not their own score.

Known vulnerabilities

3 CVEs · last 4 Sep 2020

0 CRITICAL 0 HIGH 0 MEDIUM 3 LOW

Versions

  • ≥ 1.1.6
  • ≥ 1.1.5, < 1.1.6 1 LOW
  • < 1.1.5 3 LOW

Vulnerabilities

  • GHSA-V45M-2WCP-GG98 Low 4 Sep 2020 Global node_modules Binary Overwrite in bin-links Fixed in 1.1.6
  • GHSA-2MJ8-PJ3J-H362 Low 4 Sep 2020 Symlink reference outside of node_modules in bin-links Fixed in 1.1.5
  • GHSA-GQF6-75V8-VR26 Low 4 Sep 2020 Arbitrary File Write in bin-links Fixed in 1.1.5

README

The publisher’s own README, as collected from the registry.

bin-links npm version license Travis

bin-links is a standalone library that links binaries for JavaScript packages

Install

$ npm install bin-links

Table of Contents

  • Example
  • Features
  • Contributing
  • API
    • binLinks
    • binLinks.getPaths()
    • binLinks.checkBins()
Example
const binLinks = require('bin-links')
const readPackageJson = require('read-package-json-fast')
binLinks({
  path: '/path/to/node_modules/some-package',
  pkg: readPackageJson('/path/to/node_modules/some-package/package.json'),

  // true if it's a global install, false for local.  default: false
  global: true,

  // true if it's the top level package being installed, false otherwise
  top: true,

  // true if you'd like to recklessly overwrite files.
  force: true,
})
Features
  • Links bin files listed under the bin property of pkg to the node_modules/.bin directory of the installing environment. (Or ${prefix}/bin for top level global packages on unix, and ${prefix} for top level global packages on Windows.)
  • As of v7, bin-links no longer installs man pages. Global installs used to create symlinks under ${prefix}/share/man; this is no longer done. Pre-existing man symlinks from older installs are still reported by getPaths() so that npm uninstall -g can clean them up.
Contributing

The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.

API
> binLinks({path, pkg, force, global, top})

Returns a Promise that resolves when the requisite things have been linked.

> binLinks.getPaths({path, pkg, global, top })

Returns an array of all the paths of links and shims that might be created (assuming that they exist!) for the package at the specified path.

Does not touch the filesystem.

> binLinks.checkBins({path, pkg, global, top, force })

Checks if there are any conflicting bins which will prevent the linking of bins for the given package. Returns a Promise that resolves with no value if the way is clear, and rejects if there's something in the way.

Always returns successfully if global or top are false, or if force is true, or if the pkg object does not contain any bins to link.

Note that changes to the file system may still cause the binLinks method to fail even if this method succeeds. Does not check for conflicting man links.

Reads from the filesystem but does not make any changes.

Example
binLinks({path, pkg, force, global, top}).then(() => console.log('bins linked!'))

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm bin-links

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229