Malicious code in vega-lite-next (npm)
Description
The vega-lite-next npm package is a malicious typosquat of the popular vega-lite library. It contains no legitimate functionality but executes a preinstall script that collects sensitive system information and exfiltrates it to an attacker-controlled server. This supply-chain attack targets developers who mistakenly install this lookalike package.
Affected software
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
Technical Analysis
The vega-lite-next package impersonates the legitimate vega-lite library but lacks any real functionality. Instead, its package.json declares a preinstall script that runs index.js during npm install. This script collects system information including hostname, platform, architecture, user info (username, uid, gid, shell), home directory, current working directory, and the output of 'whoami' and 'id' commands. The collected data is sent as a JSON payload via HTTP POST to a hardcoded Burp Collaborator subdomain controlled by the attacker. This behavior constitutes a supply-chain attack leveraging typosquatting to trick developers into installing malicious code.
Potential Impact
The malicious preinstall script can leak sensitive system and user information to an attacker-controlled endpoint. This compromises developer environment confidentiality and may facilitate further attacks. There is no indication of code execution beyond the preinstall script or direct system compromise, but the exfiltration of environment details poses a significant privacy and security risk.
Mitigation Recommendations
No official patch or remediation is indicated. The best mitigation is to avoid installing the vega-lite-next package and verify package names carefully before installation to prevent typosquatting attacks. Use trusted package sources and consider tools that detect malicious or typosquat packages. Monitor for suspicious network activity during npm installs.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6709
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-3hv4-8cww-7p9f"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f316acd9273b49e49378
Added to database: 09/01/2026, 15:45:26 UTC
Last enriched: 09/08/2026, 14:38:44 UTC
Last updated: 10/01/2026, 22:40:20 UTC
Views: 26
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.