Skip to main content

Dependency Confusion

Definition

Dependency confusion is a software supply chain attack where an attacker registers a malicious package with the same name as an internal, private package. When a system attempts to install or update its dependencies, it might inadvertently fetch the malicious public package instead of the intended private one. This vulnerability arises from package managers prioritizing public repositories over private ones in certain configurations. The result is the execution of unauthorized code within a project.