The defense mechanisms that NPM introduced after the 'Shai-Hulud' supply-chain attacks have weaknesses that allow threat actors to bypass them via Git dependencies. Collectively called PackageGate, the vulnerabilities were discovered in multiple utilities in the JavaScript ecosystem that allow managing dependencies, like pnpm, vlt, Bun, and NPM. Researchers at endpoint and supply-chain security company Koi discovered the issues and reported them to the vendors. They say that the problems were addressed in all tools except for NPM, who closed the report stating that the behavior "works as expected." The self-spreading Shai-Hulud supply-chain attack initially impacted npm in mid-September 2025 and compromised 187 packages. A month later, the attack returned in a new 500-package wave, which was later evaluated to have exposed 400,000 developer secrets in over 30,000 auto-generated GitHub repositories. In response to the Shai-Hulud attacks and other supply-chain incidents such as "s1ngularity" and "GhostAction," GitHub, the operator of NPM, announced a plan to implement additional security measures and suggested several mitigations. Among them are recommendations to disable lifecycle scripts during installation (‘--ignore-scripts=true’) and to enable lockfile integrity and dependency pinning. Koi security researchers found that when NPM installs a dependency from a Git repository, configuration files such as a malicious ‘.npmrc’ can override the git binary path, leading to full ...
Hackers can bypass npm’s Shai-Hulud defenses via Git dependencies
BleepingComputer
·Bill Toulas
·Published Jan 26, 2026
·Updated
Affected Software
3 affected components
GitHub npm
GitHub Bun=1.3.5
Unknown pnpm
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses vulnerabilities in npm's Shai-Hulud defenses that allow hackers to exploit Git dependencies.
2
What security implications are discussed in the article?
The article highlights how threat actors can bypass npm's security measures, potentially compromising the integrity of software supply chains.
3
What vulnerabilities are referred to as PackageGate?
PackageGate refers to the weaknesses found in npm's defenses that can be exploited through Git dependencies.
4
What software products are affected by these vulnerabilities?
The affected products include npm, Bun version 1.3.5, and pnpm.
5
Who discovered these vulnerabilities in npm's defenses?
The article mentions that the vulnerabilities were discovered collectively under the term PackageGate.