GHSA-v45m-2wcp-gg98 Global node_modules Binary Overwrite in bin-links

Not scored Published

Attackers can overwrite globally installed binaries by installing packages with conflicting names, potentially leading to malicious code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-v45m-2wcp-gg98?

GHSA-v45m-2wcp-gg98 is a vulnerability in bin-links, published on 4 Sep 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Which versions are affected by GHSA-v45m-2wcp-gg98?

2 open source packages ship an affected version, including bin-links.

PackageAffectedFixed in
bin-links npmAll versions1.1.6
bin-links npmAll versions1.1.6

How do I fix GHSA-v45m-2wcp-gg98?

Upgrade bin-links to 1.1.6 or later.

Is GHSA-v45m-2wcp-gg98 being exploited?

There is no known exploitation of GHSA-v45m-2wcp-gg98 in the wild and no public exploit code.

Sources

Is GHSA-v45m-2wcp-gg98 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free