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
Aliases
  • GHSA-jm6h-xxm2-2mr3
Published
2026-07-14T03:33:32Z
Modified
2026-09-21T23:30:04Z
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.

Source: ghsa-malware (a98ce75ef5baa1877c3fbda8f5ecffce0e8f995402bbb243416cdc56ed112261)

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-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"
            ]
        },
        {
            "id":  "GHSA-jm6h-xxm2-2mr3",
            "import_time":  "2026-09-21T23:23:07.548741329Z",
            "modified_time":  "2026-09-21T23:12:46Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "a98ce75ef5baa1877c3fbda8f5ecffce0e8f995402bbb243416cdc56ed112261",
            "source":  "ghsa-malware"
        }
    ]
}
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

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

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"
    },
    {
        "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"