Open Source · · 1 day

vant npm packages shipped XMRig

On 2024-12-19, the same day as the @rspack/core compromise and likely by the same actor, ten versions of the Chinese-origin Vue UI library vant were published to npm with obfuscated XMRig cryptojacking code beaconing to 80.78.28.72/tokens.

Part of Rspack and Vant shipped XMRig miners campaign

Vant was the second half of the December 2024 Rspack/Vant npm campaign. On December 19, attackers published malicious Vant releases across the v2, v3, and v4 lines, giving the payload a wide compatibility surface. The malicious code matched the Rspack pattern: it ran during npm installation, reached out to attacker infrastructure, installed the XMRig cryptocurrency miner, and sent host and credential data to 80.78.28.72/tokens. The campaign also touched cloud credential paths used by Alibaba Cloud, Huawei Cloud, and Tencent Cloud.

The Vant repository itself mattered to the campaign. Rspack's payload pulled a base64 blob from a Vant GitHub object, tying the two records together by infrastructure as well as timing. Sonatype blocked the affected packages and reported the linked compromise across both projects.

Maintainers released a clean 4.9.15 and deprecated the compromised versions. The 46,000 figure records package reach around the incident, not a confirmed victim count.

This record stays package-specific because Vant had ten affected releases across three major lines. Teams had to search lockfiles and caches for each version, not just look for a single compromised package coordinate.

Appendix · Affected releases

vant npm
2.13.3 sha256 05f5be5e…6cc69333 download unavailable
2.13.4 sha256 984dfa30…623b4fd1 download unavailable
2.13.5 sha256 fb8916fa…d23c9a40 download unavailable
3.6.13 sha256 a763b66b…8e9201b5 download unavailable
3.6.14 sha256 4c80c219…c6992afe download unavailable
3.6.15 sha256 8039ed4d…67c00a8c download unavailable
4.9.11 sha256 e93e9c1e…381b49fc download unavailable
4.9.12 sha256 35e142ca…250f65ec download unavailable
2 more versions
4.9.13 sha256 99878b02…477fc8a7 download unavailable
4.9.14 sha256 397f5386…719e32c4 download unavailable
  • Compromised versions span the v2, v3, and v4 release lines; maintainers released clean v4.9.15.
  • Public reporting cited package download volume as exposure context; confirmed victim count is unknown.
  • The SHA-256 values are measured complete npm archives and correspond to the listed versions in the same order: 2.13.3 through 2.13.5, 3.6.13 through 3.6.15, and 4.9.11 through 4.9.14.

References

  1. npm packages Rspack and Vant compromised, blocked by Sonatypesonatype.com
  2. Rspack and Vant npm packages compromised with cryptomining malwarethehackernews.com
  3. MUT-1692 compromises Rspack maintainer's account to distribute cryptojacking and infostealer malwaresecuritylabs.datadoghq.com

Source record: oss/attacks/vant/meta.yaml