MAL-2026-20107
Malicious code in vant (npm)
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | MAL-2026-20107 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Ten versions of vant were published on 2024-12-19 between 00:41:47Z and 01:49:30Z by the npm user landluck, using npm 9.2.0: 4.9.11, 2.13.3, 3.6.13, 4.9.12, 3.6.14, 2.13.4, 4.9.13, 4.9.14, 3.6.15 and 2.13.5. Each one adds an install hook, "postinstall": "node lib/utils/support.js", which no earlier release of vant had. Clean releases by the maintainer followed from 02:20:40Z the same day (4.9.15, 3.6.16, 2.13.6). The ten versions are deprecated on the registry with the message "Contains security vulnerabilities, do not use" but remain installable.
Content (all ten tarballs read statically, integrity matching the registry; nothing was executed): every version is the clean 4.9.10 build with every other file byte-identical to 4.9.10, package.json "version" set to the target number, the postinstall hook added, and one added file, lib/utils/support.js. The 2.13.x and 3.6.x versions therefore ship 4.x code under 2.x and 3.x numbers. lib/utils/support.js is a single obfuscated line in two builds:
- sha256 92c486bcc03a68b5b0b914417bca063bf40ad08db246a1c3f11bb8999afedf43, 609,615 bytes: 4.9.11, 2.13.3, 3.6.13
- sha256 b91f82dc09bae8c3e72e4cf8f6778a8530417bf5fed3a7e2df49e8b85950eb85, 609,441 bytes: 4.9.12, 3.6.14, 2.13.4, 4.9.13, 4.9.14, 3.6.15, 2.13.5
The script uses child_process and writes and marks files executable. Strings in both builds: the XMRig 6.22.2 linux-static-x64 release download from github.com, the endpoint 80.78.28.72/tokens (https in the first build, http in the second), an IP lookup at ipinfo.io/json, the GitHub API path api.github.com/repos/youzan/vant/git/blobs/, and the local paths /tmp/vant_helper and /tmp/xmrig. Classification: cryptocurrency miner dropper run from an install hook.
This compromise was reported publicly on the same day, in the vant maintainers' notice (youzan/vant discussion #13273, 2024-12-19T01:39Z) and in vendor write-ups such as Sonatype's, which lists the same ten versions. ossf/malicious-packages issue #1628 asks for a record for eight of them; this record adds 4.9.11 and 3.6.15. At the time of writing no malware record for these versions exists in OSV or the GitHub Advisory Database.
Versiones afectadas
2.13.32.13.42.13.53.6.133.6.143.6.154.9.114.9.124.9.134.9.14Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmvant |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/youzan/vant/discussions/13273https://github.com/ossf/malicious-packages/issues/1628https://www.sonatype.com/blog/npm-packages-rspack-vant-compromised-blocked-by-sonatypehttps://www.npmjs.com/package/vantLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
