I recently came across following article
it describe about an exploit which exploit design flaws of different package managers ex: package manager preferring higher version numbers, public packages over private ones
But article does not provide any details on how to mitigate these type of attacks? Big companies seems to have implemented mitigation strategies according to the article.
Anyone more knowledgeable please share how protect from dependency confusion attacks when using package mangers like NPM, Pip, Maven, Gradle, RubyGems, Stack.