# 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: 2024-12-19
- Severity: critical
- Kind: 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.
- Ecosystems: npm
- Scope: 1 package, 10 compromised versions
- Tags: maintainer-takeover, obfuscation
- Detected by: Sonatype, ReversingLabs
- Incident ID: npm-2024-12-19-vant-cryptominer-compromise

## Affected packages (1)

Only the exact versions listed were named by the source advisories. Other versions are not implicated.

| Package | Ecosystem | Compromised versions |
|---|---|---|
| [vant](https://dependencywatch.io/package/npm/vant) | npm | 2.13.3, 2.13.4, 2.13.5, 3.6.13, 3.6.14, 3.6.15, 4.9.11, 4.9.12, 4.9.13, 4.9.14 |

## What happened

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).

## Impact

- 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

## What to do

1. Pin and reinstall: remove node_modules and lock to a clean vant version (4.9.15+, 3.6.16+, or 2.13.6+)
2. Check for /tmp/vant_helper and /tmp/xmrig on hosts that ran npm install during the exposure window
3. Block 80.78.28.72 at network egress
4. Rotate any npm tokens accessible from affected build environments

## Check your own dependencies

- Check a package-lock.json against this incident: https://dependencywatch.io/check/package-lock-json

The scan runs entirely in the browser; lockfile contents are never uploaded.

## References

- [GHSA-j2hq-r459-pg6f: Malware in vant](https://github.com/advisories/GHSA-j2hq-r459-pg6f) - GitHub
- [Supply chain attack compromises Rspack, Vant packages with XMRig cryptominer](https://scworld.com/brief/supply-chain-attack-compromises-rspack-vant-packages-with-xmrig-cryptominer) - SC World

---

Canonical page: https://dependencywatch.io/incident/npm-2024-12-19-vant-cryptominer-compromise
Markdown version: https://dependencywatch.io/incident/npm-2024-12-19-vant-cryptominer-compromise.md
Site index for agents: https://dependencywatch.io/llms.txt
DependencyWatch.io is operated by Precursor Security (https://precursorsecurity.com).
