GHSA-2mj8-pj3j-h362 Symlink reference outside of node_modules in bin-links

Not scored Published

Attackers can create symlinks to files outside node_modules via the bin field, allowing unauthorized file access.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-2mj8-pj3j-h362?

GHSA-2mj8-pj3j-h362 is a path traversal vulnerability in bin-links, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of bin-links prior to 1.1.5 are vulnerable to a Symlink reference outside of node_modules. It is possible to create symlinks to files outside of thenode_modules folder through the bin field. This may allow attackers to access unauthorized files.

Recommendation

Upgrade to version 1.1.5 or later.

Which versions are affected by GHSA-2mj8-pj3j-h362?

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

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

How do I fix GHSA-2mj8-pj3j-h362?

Upgrade bin-links to 1.1.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is GHSA-2mj8-pj3j-h362 being exploited?

There is no known exploitation of GHSA-2mj8-pj3j-h362 in the wild and no public exploit code.

Sources

Is GHSA-2mj8-pj3j-h362 in your software?

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

Check your SBOMs for free