MAL-2026-13463

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-cleaner/MAL-2026-13463.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13463
Published
2026-08-06T19:34:43Z
Modified
2026-08-06T23:50:25.526169735Z
Summary
Malicious code in vite-plugin-cleaner (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237)

package.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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-016774",
            "import_time": "2026-08-06T23:25:08.61137351Z",
            "sha256": "35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237",
            "versions": [
                "4.1.3"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-06T19:34:43Z"
        }
    ]
}
References
Credits

Affected packages

npm / vite-plugin-cleaner

Package

Name
vite-plugin-cleaner
View open source insights on deps.dev
Purl
pkg:npm/vite-plugin-cleaner

Affected ranges

Affected versions

4.*
4.1.3

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "tlsh": "9c018c27c4988c1304b0d1d59c7052a2f0628b5f82a4ec0fb1f6116f4fb96664466b69",
            "sha256": "16321731f0461ef932f9f5d7ec365d0eb3208901917d0927b57fe1a3201650d0"
        }
    ],
    "package_integrity": [
        {
            "filename": "vite-plugin-cleaner-4.1.3.tgz",
            "hashes": {
                "sha1": "690dc4ca77298c67f5ba2d5e91fbf21edaa7b762",
                "sha512_sri": "sha512-Ww8huQf6FWtEq4IhfTafN1HqMArJD590TDi1fn63y3h9tJkYAFXUmWOTsDyWR6NEcQOpCEYPYXhWdJmpUADfyw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-cleaner/MAL-2026-13463.json"