MAL-2026-10470

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@uw010010/vite-tree/MAL-2026-10470.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10470
Aliases
  • GHSA-5q9f-77m9-x7c2
Published
2026-07-13T18:50:08Z
Modified
2026-08-14T15:00:55.364301308Z
Summary
Malicious code in @uw010010/vite-tree (npm)
Details

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

Source: amazon-inspector (280687ad50e03b43bf7f26df6afb1a8fb794eb486c126b2368f37c6b76625318)

The package @uw010010/vite-tree impersonates the upstream vite package: its package.json verbatim copies vite's author ('Evan You'), description ('Native-ESM powered web dev build tool'), bin name 'vite', repository (git+https://github.com/vitejs/vite.git), and homepage (https://vitejs.dev), and ships vite's README. Appended to bin/vite.js, after ~5KB of whitespace padding, is an obfuscated trailer that builds a shuffled string-array dispatcher (via Fisher-Yates permutation with String.fromCharCode(127) sentinel substitution) to reconstitute method/property names such as 'http(s)', 'get', 'POST', 'request', 'childprocess', 'spawn', 'JSON.parse', 'JSON.stringify', and '2.0'. At runtime the trailer issues an HTTP GET and a JSON-RPC 2.0 POST (id:1) to an attacker-controlled endpoint, XOR-decodes the response with a key derived from the response, and then both eval()s the decoded string and invokes childprocess.spawn with detached:true, windowsHide:true, stdio:'ignore' to run the same decoded payload as a detached background process. The bin executes on every invocation of vite / npx vite from this package, so any developer who installs the typosquat and runs the bin gets arbitrary attacker code executed on their machine plus a hidden detached child for persistence.

Source: ghsa-malware (24e30c92f11a29a0e4bf5e15c082c6e473e2a265da1631b08f3a4dc562212580)

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-010287",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T19:00:27.154100079Z",
            "modified_time": "2026-07-13T18:50:08Z",
            "sha256": "280687ad50e03b43bf7f26df6afb1a8fb794eb486c126b2368f37c6b76625318",
            "versions": [
                "3.4.3"
            ]
        },
        {
            "id": "IN-MAL-2026-010288",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T19:00:27.211350878Z",
            "modified_time": "2026-07-13T18:50:17Z",
            "sha256": "65e23b061055b285adb8986b010f33d81139ee598030c6b9c01ebab1f82dbc0f",
            "versions": [
                "3.6.1"
            ]
        },
        {
            "id": "IN-MAL-2026-010289",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T19:00:27.260823725Z",
            "modified_time": "2026-07-13T18:50:25Z",
            "sha256": "916f969791e6d0843b410b512e242fc3757622aa5ad8b146b1884a663a168379",
            "versions": [
                "3.4.2"
            ]
        },
        {
            "id": "GHSA-5q9f-77m9-x7c2",
            "source": "ghsa-malware",
            "import_time": "2026-08-13T22:11:44.59593324Z",
            "modified_time": "2026-08-13T17:05:20Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "24e30c92f11a29a0e4bf5e15c082c6e473e2a265da1631b08f3a4dc562212580"
        },
        {
            "id": "IN-MAL-2026-017794",
            "source": "amazon-inspector",
            "import_time": "2026-08-14T14:51:39.005765752Z",
            "modified_time": "2026-08-14T14:37:13Z",
            "sha256": "9355f31d570f43563a44f9a757929b3c28290c8d433a0ba07a4c9d7de3710733",
            "versions": [
                "3.4.1"
            ]
        },
        {
            "id": "IN-MAL-2026-017783",
            "source": "amazon-inspector",
            "import_time": "2026-08-14T14:51:38.302216256Z",
            "modified_time": "2026-08-14T14:35:36Z",
            "sha256": "b021dbd6478f93612449d66803ebd2d8acc34668678ec42992262837476b7451",
            "versions": [
                "8.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @uw010010/vite-tree

Package

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

Affected ranges

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

Affected versions

3.*
3.4.1
3.4.2
3.4.3
3.6.1
8.*
8.1.0

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "ab69523aa72bea54fac604d7c362aec926108c176b022f571d5c2df87eac623b",
            "tlsh": "dea19b25cda88da30ad420e9ec791142f13485578e65fc18339d57ad0f4d26f327ebae",
            "path": "package.json"
        },
        {
            "sha256": "b4a165d09246f87113d6a9118b2ba989936544f3e5b2c39d0c2bd81c791c0f51",
            "tlsh": "51f14034b6fc38680f2c34b9bd9f090b24a54b11aec94149727cfe902bfdb17865d966",
            "path": "bin/vite.js"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "3c17905fe8ae21e08785c908bde9cc58834376a6",
                "sha512_sri": "sha512-bAfcMJh6PwSlo8B9hforAZApj64tvEdiXpmiVEYOYg62o7xdCEm/zypDaWUnoHmJyMOaOfCuYad06cZQ4IVQvQ=="
            },
            "filename": "vite-tree-3.4.3.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@uw010010/vite-tree/MAL-2026-10470.json"
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]