{"id":"MAL-2026-20289","summary":"Malicious code in vite-plugin-bar-plus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8abd82f55f5166e298a26544d211054accd35ea8f16b6f1e0aeb84e32b0542d2)\nThe package is advertised as a Vite progress-bar plugin but, during a consumer's Vite build, POSTs the machine hardware UUID (read via systeminformation.system()), the USERNAME and USERDOMAIN environment values, INIT_CWD, the npm package name/version, and the value of the VITE_APP_EMAIL_USER_NAME environment variable to http://api.wit-ui.com/check.php over plaintext HTTP. Both the destination URL and the env-var name are assembled at runtime from 2-3 character string fragments ('ht'+'tp'+':'+'//'+'api'+'.'+'wi'+'t'+'-u'+'i.'+'c'+'o'+'m'+'/'+'che'+'ck'+'.'+'p'+'hp' and 'VI'+'TE_A'+'PP_EM'+'AIL'+'_US'+'ER'+'_NA'+'ME'), a deliberate anti-detection pattern rather than minifier output. The response handler branches on data.ret == 0 and, when set, writes the server-supplied data.msg to the build output in red and calls process.exit(), giving the author a remote kill switch that aborts any consumer's Vite build with attacker-chosen text. None of this behavior is disclosed in the README, which contains only an install line.\n","modified":"2026-11-20T04:30:25.710818237Z","published":"2026-11-20T03:47:27Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.47"],"id":"IN-MAL-2026-022939","import_time":"2026-11-20T04:13:20.029720945Z","modified_time":"2026-11-20T03:47:27Z","sha256":"8abd82f55f5166e298a26544d211054accd35ea8f16b6f1e0aeb84e32b0542d2","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-bar-plus/v/1.0.47"}],"affected":[{"package":{"name":"vite-plugin-bar-plus","ecosystem":"npm","purl":"pkg:npm/vite-plugin-bar-plus"},"versions":["1.0.47"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"a8ca60aee98dab043abb5d71121b14cfe1a7b211adc16e60d5795fcb164dc45a","tlsh":"2b43511898f125565303b1b9888b9405b77de1037818adacbe5de7606f8903dcbf6bdc"}],"package_integrity":[{"filename":"vite-plugin-bar-plus-1.0.47.tgz","hashes":{"sha512_sri":"sha512-EOcjxpqAC7KIqWfWKumyG9N3kOqLE5ZUi8zyfSZuPDWyFicAMDiB2Ryli2j4LWggE3WBmRtLKhbp7DONHjiFmw==","sha1":"8612c8b8918bb2d504787fe1b97cc9f17551da6b"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-bar-plus/MAL-2026-20289.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}