vite-plugin-bar-plusnpm
Advisory published Updated
vite-plugin-bar-plus is a confirmed malicious npm package (MAL-2026-20289) that steals credentials and exfiltrates sensitive data (malicious version 1.0.47). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in vite-plugin-bar-plus (npm)
What this malware does
The package is advertised as a Vite progress-bar plugin but, during a consumer's Vite build, POSTs the machine hardware UUID (read via systeminformation.system()), the USERNAME and USERDOMAIN environment values, INIT_CWD, the npm package name/version, and the value of the VITE_APP_EMAIL_USER_NAME environment variable to http://api.wit-ui.com/check.php over plaintext HTTP. Both the destination URL and the env-var name are assembled at runtime from 2-3 character string fragments ('ht'+'tp'+':'+'//'+'api'+'.'+'wi'+'t'+'-u'+'i.'+'c'+'o'+'m'+'/'+'che'+'ck'+'.'+'p'+'hp' and 'VI'+'TE_A'+'PP_EM'+'AIL'+'_US'+'ER'+'_NA'+'ME'), a deliberate anti-detection pattern rather than minifier output. The response handler branches on data.ret == 0 and, when set, writes the server-supplied data.msg to the build output in red and calls process.exit(), giving the author a remote kill switch that aborts any consumer's Vite build with attacker-chosen text. None of this behavior is disclosed in the README, which contains only an install line.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for vite-plugin-bar-plus (version 1.0.47).
If you installed it — respond
vite-plugin-bar-plus is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If vite-plugin-bar-plus was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks vite-plugin-bar-plus-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.