Dependency confusion against a private package index
The company pulls internal packages from a private package index that also falls back to a public one. You publish a package with an internal name and a higher version, and the build installs yours. This dependency confusion attack shows how one resolver setting turns a package name into code execution in CI.