vant npm maintainer token stolen, cryptominer injected into 10 releases
On 2024-12-19, ten malicious versions of vant (a popular Vue.js mobile UI library) were published via a stolen npm token. Each version added a postinstall hook that downloaded and ran the XMRig cryptocurrency miner. Clean releases followed the same day.
Published 19 Dec 2024
Every version named by the advisory is in the scanner, so a lockfile check finds it directly.
- Severity
- Critical
- Type
- Compromise
- Published
- 19 Dec 2024
- Ecosystems
- npm
- Detected by
- Sonatype, ReversingLabs
- Source
- github.com
Compromise. A legitimate, already-used package, maintainer account, CI pipeline, or release tag was hijacked and a malicious version was published under a name people already depend on.
The full picture
Between 00:41 and 01:49 UTC on 2024-12-19, the npm user landluck published ten malicious versions of vant across the v2, v3 and v4 release lines. Each version added a postinstall hook (node lib/utils/support.js) containing an obfuscated XMRig dropper. The script downloads the XMRig 6.22.2 Linux static binary from GitHub, contacts 80.78.28.72/tokens, performs an IP lookup via ipinfo.io, and writes the miner to /tmp/vant_helper.
The compromise was detected the same day. Clean releases (4.9.15, 3.6.16, 2.13.6) were published from 02:20 UTC, roughly 30 minutes after the last malicious version. The malicious 2.x and 3.x versions contained v4 code under older version numbers, confirming they were automated rebadges rather than targeted patches of each line.
The attack vector was a stolen npm publish token. The same token-theft technique hit the @rspack/core and @rspack/cli packages on the same day in a coordinated campaign. The GHSA advisory (GHSA-j2hq-r459-pg6f) was published on 2026-11-18 as a backfill.
Two distinct payload variants exist, distinguished by their lib/utils/support.js SHA-256 hash: 92c486bcc0… (609,615 bytes, used in 4.9.11, 2.13.3, 3.6.13) and b91f82dc09… (609,441 bytes, used in the remaining seven versions).
1 package 10 versions
These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.
What it does if you installed it
- Cryptocurrency miner (XMRig) downloaded and executed on install via postinstall hook
- Outbound connections to 80.78.28.72/tokens and ipinfo.io for host fingerprinting
- Miner binary written to /tmp/vant_helper and /tmp/xmrig
Clean-up steps
- Pin and reinstall: remove node_modules and lock to a clean vant version (4.9.15+, 3.6.16+, or 2.13.6+)
- Check for /tmp/vant_helper and /tmp/xmrig on hosts that ran npm install during the exposure window
- Block 80.78.28.72 at network egress
- Rotate any npm tokens accessible from affected build environments
Sources
- GHSA-j2hq-r459-pg6f: Malware in vantgithub.com
- Supply chain attack compromises Rspack, Vant packages with XMRig cryptominerscworld.com
Check your lockfile against this and every other incident.
Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.