MAL-2026-13463Malicious code in vite-plugin-cleaner (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | vite-plugin-cleaner | * |
| npm | vite-plugin-cleaner | 4.1.3 |
{"schema_version":"1.7.4","id":"MAL-2026-13463","published":"2026-08-06T19:34:43Z","modified":"2026-08-25T17:27:32.538124987Z","aliases":["GHSA-rx9h-69c4-qhq5"],"summary":"Malicious code in vite-plugin-cleaner (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237)\npackage.json declares an optionalDependency `vite-cleaning-tools` pointing at `github:vite-plugins/vite-cleaning-tools` with no commit SHA or tag, so npm resolves and fetches whatever code is at the current HEAD of that GitHub repository at install time. The `postinstall` script then runs `node -e \"try { require('vite-cleaning-tools') } catch(e) {}\"`, executing that fetched code on every `npm install` while a try/catch silently swallows any errors. Because the reference is mutable and lives outside the npm registry, the maintainer (or anyone who gains write access to the GitHub repository) can change what runs on installer machines at any moment without publishing a new npm version, and npm registry scanning does not cover the fetched payload.\n\n## Source: ghsa-malware (0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"vite-plugin-cleaner","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["4.1.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"16321731f0461ef932f9f5d7ec365d0eb3208901917d0927b57fe1a3201650d0","tlsh":"9c018c27c4988c1304b0d1d59c7052a2f0628b5f82a4ec0fb1f6116f4fb96664466b69"}],"package_integrity":[{"filename":"vite-plugin-cleaner-4.1.3.tgz","hashes":{"sha1":"690dc4ca77298c67f5ba2d5e91fbf21edaa7b762","sha512_sri":"sha512-Ww8huQf6FWtEq4IhfTafN1HqMArJD590TDi1fn63y3h9tJkYAFXUmWOTsDyWR6NEcQOpCEYPYXhWdJmpUADfyw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-cleaner/v/4.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rx9h-69c4-qhq5"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-016774","import_time":"2026-08-06T23:25:08.61137351Z","modified_time":"2026-08-06T19:34:43Z","sha256":"35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237","source":"amazon-inspector","versions":["4.1.3"]},{"id":"GHSA-rx9h-69c4-qhq5","import_time":"2026-08-25T17:25:28.279281906Z","modified_time":"2026-08-25T16:45:43Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0