Skip to main content

Malicious code in vs-modules (npm)

0
Critical
Published: 08/29/2026 (08/29/2026, 02:13:27 UTC)
Source: GCVE Database
Product: vs-modules

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.

Affected software

npmghsa
vs-modules
Affected versions
=1.2.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 21:23:47 UTC

Technical Analysis

The 'vs-modules' npm package version 1.2.2 declares a preinstall hook that runs a heavily obfuscated script 'resources.js' during 'npm install'. This script reconstructs a plain-HTTP URL hosted on an anonymous Netlify subdomain, downloads a batch file to the system's temporary directory using 'curl', and executes it immediately via child_process.exec. The lack of integrity checks or HTTPS means the downloaded payload can be manipulated, leading to arbitrary code execution on the installer's machine. The package's legitimate purpose is unrelated to this behavior, indicating intentional malicious activity.

Potential Impact

Any system that installs this package version is fully compromised as the malicious batch file executes with the installer's privileges. This can lead to unauthorized access, data theft, or further malware deployment. All secrets and keys stored on the compromised system should be considered exposed and rotated immediately. Removing the package alone does not guarantee removal of all malicious artifacts or persistence mechanisms.

Defensive Guidance

Users should immediately remove the 'vs-modules' package version 1.2.2 from their systems. All credentials and secrets on affected machines must be rotated from a secure, uncompromised environment. Since no official patch or fix is indicated, avoid using this package version entirely. Monitor for any suspicious activity resulting from this compromise and consider full system remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15564
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7d9acd9273b49e75aa4

Added to database: 08/29/2026, 15:16:41 UTC

Last enriched: 09/09/2026, 21:23:47 UTC

Last updated: 10/01/2026, 22:26:59 UTC

Views: 39

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses