Skip to main content

Malicious code in vitest-cli-pro (npm)

0
Critical
Published: 09/02/2026 (09/02/2026, 03:58:15 UTC)
Source: GCVE Database
Product: vitest-cli-pro

Description

The npm package vitest-cli-pro version 10.0.7 contains malicious code that executes arbitrary JavaScript during installation. It masquerades as nodemailer and runs a postinstall script that fetches attacker-controlled code from a remote JSON bin and executes it on the installing user's machine.

Affected software

npmghsa
vitest-cli-pro
Affected versions
=10.0.7

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/07/2026, 22:38:42 UTC

Technical Analysis

The vitest-cli-pro package (version 10.0.7) published on npm includes a postinstall script that runs lib/utils/index.js, which spawns a detached Node.js process executing lib/utils/smtp-connection/index.js. This script performs an HTTPS GET request to a mutable, attacker-controlled JSON bin at https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659, retrieves a 'cookie' value, and executes it immediately using new Function(require). This allows arbitrary JavaScript code execution on any system running 'npm install vitest-cli-pro', under the privileges of the installing user. The package uses the nodemailer code and the vitest-branded name as a cover to disguise its malicious behavior.

Potential Impact

Any user who installs vitest-cli-pro version 10.0.7 may have arbitrary JavaScript code executed on their machine with their user privileges. This can lead to compromise of the user's environment, data theft, or further malware installation. The attack is triggered during package installation without additional user interaction.

Mitigation Recommendations

No official patch or remediation is indicated in the provided data. Users should avoid installing vitest-cli-pro version 10.0.7. If already installed, remove the package and audit the system for potential compromise. Monitor the vendor advisory or npm security advisories for updates or official guidance. Since this is a malicious package, the best mitigation is to avoid using it altogether.

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-15818
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a984560acd9273b496ab9e7

Added to database: 09/02/2026, 15:48:48 UTC

Last enriched: 09/07/2026, 22:38:42 UTC

Last updated: 10/04/2026, 03:39:15 UTC

Views: 53

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