Microsoft has published a white paper on Tuesday about a new type of attack technique called a "dependency confusion" or a "substitution attack" that can be used to poison the app-building process inside corporate environments.
Besides Yarn, npm, RubyGems, PyPI, Gradle, Maven, NuGet, other package managers are vulnerable.