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
Aliases
  • GHSA-rx9h-69c4-qhq5
Published
2026-08-06T19:34:43Z
Modified
2026-08-26T01:18:30Z
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.

Source: ghsa-malware (0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac)

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

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"
        }
    ]
}
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

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

4.*
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=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-cleaner/MAL-2026-13463.json"