vant@4.9.11
Malicious code in vant (npm)
Analysis
This publish carries the branding of the Vant Vue UI component library (metadata points at git+hxxps://github[.]com/vant-ui/vant[.]git) but ships an injected postinstall cryptominer. package.json adds "postinstall": "node lib/utils/support.js"; that file is a 609KB obfuscated webpack bundle in which all the ordinary npm internals (axios, tar, mkdirp, follow-redirects) are obfuscated, and which contains an injected module that: silences output by no-oping process.stderr.write, console.log and console.error; downloads the XMRig 6.22.2 Linux static x64 archive from hxxps://github[.]com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz into /tmp and extracts the entry named "xmrig" (falling back to a blob fetched from hxxps://api[.]github[.]com/repos/youzan/vant/git/blobs/8ed1c9256b4bfeb3e4f5aaff48bf140398361ae3 extracted to a "vant_helper" directory), chmods it 0755 (the literal "/tmp/xmrig" path is embedded); launches it with "-u <Monero wallet> -o pool[.]supportxmr[.]com:443 --tls -k ..."; then reads config files under the user's home directory (a literal ".hcloud/config.json" path plus two other home-directory paths), concatenates their contents, base64-encodes them and POSTs them to hxxps://80[.]78[.]28[.]72/tokens; it also queries hxxps://ipinfo[.]io/json for host lookup and exits successfully on non-Linux platforms so it stays silent on developers' machines. Monero wallet address (98 chars, begins 475NBZygw): 475NBZygwEajj4YP2Bdu7yg6XnaphiFjxTFPkvzg5xAjLGPSakE68nyGavn8r1BYqB44xTEyKQhueeqAyGy8RaYc73URL1j. Indicators: hxxps://80[.]78[.]28[.]72/tokens, pool[.]supportxmr[.]com:443, hxxps://github[.]com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 03:38 AM
- analyzed
- Nov 18, 2026, 03:43 AM
- weekly installs
- 89,733
hxxps://github[.]com/vant-ui/vant Request takedown / dispute →Related advisories
- vant@4.9.12 same package
- vant@2.13.5 same package
- vant@2.13.3 same package
- vant@3.6.13 same package
- nullsub@1.11.16
- agent-bypass@2.29.2
- agent-bypass@2.29.1
- @tjmlgd/svg@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.