Skip to main content

Malicious code in vitest-chalk-pro (npm)

0
Critical
Published: 08/29/2026 (08/29/2026, 02:12:51 UTC)
Source: GCVE Database
Product: vitest-chalk-pro

Description

The npm package vitest-chalk-pro version 10.0.7 contains malicious code that executes attacker-controlled JavaScript during installation. It uses a postinstall hook to spawn a detached, silent child process that fetches and executes code from a remote, mutable source. The package masquerades as a utility related to vitest and chalk but is actually a disguised dropper resembling nodemailer. This behavior allows arbitrary code execution on the installer's machine at every npm install.

Affected software

npmghsa
vitest-chalk-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/09/2026, 21:23:33 UTC

Technical Analysis

The npm package [email protected] declares a postinstall hook that runs a detached, silenced child process executing lib/utils/smtp-connection/index.js. This child process uses axios to fetch a JSON document from https://api.jsonbin.io/v3/b/6a62bc86da38895dfe879659, extracting a 'cookie' field which is passed to a dynamically constructed Function that executes attacker-controlled JavaScript code. The fetched payload is opaque and mutable, allowing the attacker to rotate the malicious code at will. The child process is spawned with detached and ignored stdio settings, continuing to run silently after npm install completes. The package name suggests a vitest/chalk utility, but its main entrypoint is a copy of nodemailer's, serving as a facade to disguise the malicious dropper.

Potential Impact

This malicious package enables arbitrary code execution on any machine where [email protected] is installed via npm. The attacker can remotely update the payload at any time, potentially leading to persistent compromise, data theft, or further malware deployment. The silent and detached execution makes detection difficult during installation.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing [email protected] and remove it if already installed. Verify package authenticity before installation and prefer official, well-maintained packages. Monitor for updates from the package maintainer or npm advisories for any 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-15563
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7d9acd9273b49e75aaa

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

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

Last updated: 10/01/2026, 22:27:05 UTC

Views: 20

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