{"id":"MAL-2026-20107","summary":"Malicious code in vant (npm)","details":"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.\n\nContent (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:\n- sha256 92c486bcc03a68b5b0b914417bca063bf40ad08db246a1c3f11bb8999afedf43, 609,615 bytes: 4.9.11, 2.13.3, 3.6.13\n- 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\n\nThe 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.\n\nThis 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.","modified":"2026-11-18T03:30:04.497233180Z","published":"2026-11-17T00:00:00Z","database_specific":{"iocs":{"files":[{"paths":["package/lib/utils/support.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"92c486bcc03a68b5b0b914417bca063bf40ad08db246a1c3f11bb8999afedf43"},"note":"postinstall payload, build 1, 609615 bytes (4.9.11, 2.13.3, 3.6.13)"},{"paths":["package/lib/utils/support.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"b91f82dc09bae8c3e72e4cf8f6778a8530417bf5fed3a7e2df49e8b85950eb85"},"note":"postinstall payload, build 2, 609441 bytes (4.9.12, 3.6.14, 2.13.4, 4.9.13, 4.9.14, 3.6.15, 2.13.5)"},{"paths":["/tmp/vant_helper","/tmp/xmrig"],"note":"local paths written by the payload"}],"ips":["80.78.28.72"],"urls":["https://80.78.28.72/tokens","http://80.78.28.72/tokens","https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz"]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vant"},{"type":"REPORT","url":"https://github.com/youzan/vant/discussions/13273"},{"type":"REPORT","url":"https://github.com/ossf/malicious-packages/issues/1628"},{"type":"REPORT","url":"https://www.sonatype.com/blog/npm-packages-rspack-vant-compromised-blocked-by-sonatype"}],"affected":[{"package":{"name":"vant","ecosystem":"npm","purl":"pkg:npm/vant"},"versions":["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"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vant/MAL-2026-20107.json"}}],"schema_version":"1.9.2","credits":[{"name":"r-bedekar","contact":["https://github.com/r-bedekar"],"type":"ANALYST"}]}