logo

Exploring extensions of dependency confusion attacks via npm package aliasing

ID: 3a94ef0e-1b0c-5d30-accf-115c8284c8a5

STIX ID: report--3a94ef0e-1b0c-5d30-accf-115c8284c8a5

Feed Name: Snyk Blog

Threat Score
55/100

Date Published: 2021-11-04

Date Updated: 2026-09-15

...
...

This report demonstrates a variant of dependency confusion in npm that leverages npm's package aliasing feature: an author can alias an internal package name to a real public package version, which causes the npm registry and developer tooling to display a made-up package name that does not exist unless an attacker publishes it, enabling potential supply-chain compromise; the authors reproduced the issue, published a proof-of-concept package, and recommend detection and mitigation measures (including Snyk tooling).

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.