Unauthorized File Access Affecting bin-links package, versions <1.1.5


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.18% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-BINLINKS-537609
  • published 12 Dec 2019
  • disclosed 11 Dec 2019
  • credit Daniel Ruf

How to fix?

Upgrade bin-links to version 1.1.5 or higher.

Overview

bin-links is a .bin/ script linker package.

Affected versions of this package are vulnerable to Unauthorized File Access. It is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation.

For npm, a properly constructed entry in the package.json bin field would allow a package publisher to create a symlink pointing to arbitrary files on a user’s system when the package is installed. This behaviour is possible through install scripts. This vulnerability bypasses a user using the --ignore-scripts install option.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
2.6 low
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

6.5 medium
Expand this section

SUSE

7.7 high
Expand this section

Red Hat

4.8 medium