vs-modules (npm) · Malicious Code
Affects vs-modulesSource GCVE Database
Malicious package : remove vs-modules and rotate any secrets on hosts that installed it.
Data as of 25 Nov 2026, 11:28 UTC
Malicious package
Published to npm · OSV MAL-2026-15564
What to do
Remove vs-modules from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvs-modules | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'vs-modules' version 1.2.2 contains malicious code that executes automatically during installation. It runs an obfuscated script that downloads and executes a Windows batch file from an untrusted, plain-HTTP Netlify URL. This behavior is unrelated to the package's stated functionality and results in full compromise of the host system.
References
- npmjs.com/package/vs-modules/v/1.2.2 (opens in a new tab)
- github.com/advisories/GHSA-8hpw-v4hq-pg99 (opens in a new tab)
- npmjs.com/package/vs-modules/v/1.2.1 (opens in a new tab)
- github.com/advisories/GHSA-vg83-965g-3w5v (opens in a new tab)
- security.snyk.io/vuln/SNYK-JS-VSMODULES-19426870 (opens in a new tab)
- github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/test-in-one/MAL-2026-15562.json (opens in a new tab)