MAL-2026-6984

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@vite-ln/build-ts/MAL-2026-6984.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6984
Aliases
  • GHSA-p85w-qq28-35h6
Published
2026-07-08T15:04:55Z
Modified
2026-07-09T23:02:05.426117150Z
Summary
Malicious code in @vite-ln/build-ts (npm)
Details

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

Source: amazon-inspector (8972bbfdd55ad200dd49b08501d7391beca99841f0c36479806f2b1e329950a2)

Package @vite-ln/build-ts copies the legitimate vite package's manifest verbatim (description 'Native-ESM powered web dev build tool', author 'Evan You', repository vitejs/vite, bin name 'vite') but is published under the unofficial scope @vite-ln rather than @vitejs. The tarball appends an obfuscated payload to the CLI entry bin/vite.js after the legitimate Vite bootstrap. The payload uses a shuffled, character-substituted string array decoded at runtime to recover endpoint hostnames, HTTP methods, and Node API names, then performs an HTTP(S) GET followed by a JSON-RPC 2.0 POST (an 'EtherHiding'-style retrieval where the payload is pulled from a blockchain RPC so the operator can rotate it without republishing), XOR-decodes the response with an embedded key, and executes the decoded bytes both via eval(r) and via a detached, hidden child_process.spawn('node', [..., r], {detached:true, stdio:'ignore', windowsHide:true}). Any developer who runs the vite CLI from this package (e.g., npx vite, npm run dev/build) executes attacker-controlled, dynamically rotated code on their machine with full developer privileges and a persisted detached process. Additional base64-decode-then-toString patterns appear in dist/node/chunks/dep-SDtFYyy1.js and dist/node/runtime.js, consistent with the same obfuscation family.

Source: ghsa-malware (0b380eb60df5dc8d12ad64fe26e5c1ca08c4fa39505400ba90ea1a2d305121ff)

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": [
        {
            "sha256": "0b380eb60df5dc8d12ad64fe26e5c1ca08c4fa39505400ba90ea1a2d305121ff",
            "id": "GHSA-p85w-qq28-35h6",
            "import_time": "2026-07-08T15:56:06.79532039Z",
            "modified_time": "2026-07-08T15:04:55Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "5.15.10"
            ],
            "id": "IN-MAL-2026-009368",
            "import_time": "2026-07-09T17:19:29.957985483Z",
            "modified_time": "2026-07-09T17:02:08Z",
            "sha256": "8972bbfdd55ad200dd49b08501d7391beca99841f0c36479806f2b1e329950a2",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "5.17.0"
            ],
            "id": "IN-MAL-2026-009527",
            "modified_time": "2026-07-09T22:08:35Z",
            "import_time": "2026-07-09T22:56:31.28083255Z",
            "sha256": "da83aebf307df3b1570739f5dfac71e48f8ca4482152d789145da109772c3fa3",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @vite-ln/build-ts

Package

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

Affected ranges

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

Affected versions

5.*
5.15.10
5.17.0

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "32a19b21cda88da30ad420e9ec791142f13485578e65fc18339d57ad4f4e26f327ebae",
            "sha256": "84f2a51c571d90aa65b09cf794ca64c94f915f4150d8d77f2f4624050f6f56fd",
            "path": "package.json"
        },
        {
            "tlsh": "31f14034b6fc38680f2c34b9bd9f090b24a54b11aec94149727cfe902bfdb17865d966",
            "sha256": "f68356f47cb30a279be846ebebf45e3418c073d0bbcf2c4d790bd59f9f3bd235",
            "path": "bin/vite.js"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "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",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@vite-ln/build-ts/MAL-2026-6984.json"