MAL-2026-10527

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@vite-ts/vite-ui/MAL-2026-10527.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10527
Published
2026-07-14T03:33:32Z
Modified
2026-07-14T04:47:00Z
Summary
Malicious code in @vite-ts/vite-ui (npm)
Details

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

Source: amazon-inspector (c6076869d73ce328ffd736c9df9d269cd99e505ffc3bfceae5d3f5a633a8c420)

Package @vite-ts/vite-ui@6.44.1 impersonates the legitimate vite package: it clones vite's README, declares author 'Evan You', homepage https://vitejs.dev, repository vitejs/vite, and a bin entry mapping vite to bin/vite.js. The shipped bin/vite.js contains an obfuscated IIFE that reconstructs a string table from a shuffled blob using the integer seed 4606094 to hide the strings 'https', 'child_process', 'eval', 'POST', '2.0', and the destination URLs. At runtime the payload issues an HTTPS GET to an Ethereum block-explorer URL and a JSON-RPC POST to an Ethereum node, XOR-decodes the hex result to retrieve JavaScript code from an attacker-controlled smart contract (EtherHiding pattern), and executes the retrieved code via eval(r) and via a detached child_process.spawn('node', ['-e',...+r], { detached: true, windowsHide: true }). The fetched bytes are not pinned, not signature-verified, and are mutable by the contract owner, so any consumer invoking the vite CLI from this package runs whatever code the attacker currently has staged on-chain. Additional install-time curl invocations and Buffer.from(...,'base64').toString() decode chains are present in the bundled dist files.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-010364",
            "import_time": "2026-07-14T04:31:58.995624641Z",
            "modified_time": "2026-07-14T03:33:32Z",
            "sha256": "c6076869d73ce328ffd736c9df9d269cd99e505ffc3bfceae5d3f5a633a8c420",
            "source": "amazon-inspector",
            "versions": [
                "6.44.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @vite-ts/vite-ui

Package

Name
@vite-ts/vite-ui
View open source insights on deps.dev
Purl
pkg:npm/%40vite-ts/vite-ui

Affected ranges

Affected versions

6.*
6.44.1

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": "package.json",
            "sha256": "9f45a5b0ecaa364b920fbc230f5e747a1f9d65d986da07a6f0f73b0d16757044",
            "tlsh": "d4a19b25cda88da30ad420e9ec791142f13485578e65fc18339d57ad0f4e26f327ebae"
        },
        {
            "path": "bin/vite.js",
            "sha256": "fe7a267f95f960f099a625cb9aae87c5b9da2ce5eb4c860eb59b944c1f7ce6ac",
            "tlsh": "dff14034b6fc38680f2c34b9bd9f090b24a54b11aec94149727cfe902bfdb17865d966"
        }
    ],
    "package_integrity": [
        {
            "filename": "vite-ui-6.44.1.tgz",
            "hashes": {
                "sha1": "7cbdd81f5d578ff1e8dcd2f144b2841469ebce2f",
                "sha512_sri": "sha512-SIusvAJs5pmg9ENPBqNa21yE/UbRf9MWYGJOCi8whxb9pgIJibr0czBkZTCVg2apy82GoFhMUJq/ywnGhtzY3A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@vite-ts/vite-ui/MAL-2026-10527.json"