MAL-2026-16047

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@usemosaik/template-react-js/MAL-2026-16047.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16047
Aliases
  • GHSA-8rcc-9ggm-659p
Published
2026-09-08T16:37:43Z
Modified
2026-09-08T19:30:05Z
Summary
Malicious code in @usemosaik/template-react-js (npm)
Details

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

Source: amazon-inspector (3174ac7cecbc1869ae5ac87ea585de744f6b7d17b8c089b746384c2b7e2355a3)

This template package ships files/vite.config.js which, after a benign Vite header, appends ~26KB of heavily obfuscated code (obfuscator.io-style string-array with rotation dispatcher, hex payloads XOR-decoded at runtime with key 0xA2, arithmetic-hidden numeric literals). When the scaffolded project is run via vite / npm run dev, the config executes a run() routine that queries Ethereum JSON-RPC endpoints (eth_getBlockByNumber, eth_getTransactionCount) against a hardcoded sender address to resolve a command-and-control IP hidden in on-chain transaction data, fetches an XOR-encrypted payload over HTTP, decrypts it, and passes it to both eval(...) and spawn('node', ['-e', payload], {detached: true, stdio: 'ignore', windowsHide: true}), yielding a hidden detached Node process on the developer's machine. The package's declared main (dist/index.js) is inert, so scanners inspecting only the entry point miss the payload; the obfuscation and EtherHiding indirection exist solely to conceal the remote-execution chain from static review. Execution fires the first time a developer runs the scaffolded project generated from this template, giving full RCE on the developer's host.

Source: ghsa-malware (9cb614be24802762692ee3d58173981e3c20bdebe4fabd6846ab71671568d4ca)

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": "GHSA-8rcc-9ggm-659p",
            "import_time": "2026-09-08T17:24:59.244326561Z",
            "modified_time": "2026-09-08T16:37:44Z",
            "sha256": "9cb614be24802762692ee3d58173981e3c20bdebe4fabd6846ab71671568d4ca",
            "source": "ghsa-malware",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-019691",
            "import_time": "2026-09-08T19:15:04.453922255Z",
            "modified_time": "2026-09-08T19:09:58Z",
            "sha256": "3174ac7cecbc1869ae5ac87ea585de744f6b7d17b8c089b746384c2b7e2355a3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @usemosaik/template-react-js

Package

Name
@usemosaik/template-react-js
View open source insights on deps.dev
Purl
pkg:npm/%40usemosaik/template-react-js

Affected ranges

Affected versions

1.*
1.0.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": "files/vite.config.js",
            "sha256": "58343a4b3690d6af262f06370148799f9a02c09314882948b566ff1a9900352b",
            "tlsh": "c7c23b8d9da230f1e76057eaec058dc2a805ec59252bcc96b12cf8d63f44f5468bb774"
        }
    ],
    "package_integrity": [
        {
            "filename": "template-react-js-1.0.1.tgz",
            "hashes": {
                "sha1": "87693d198a595fcff1900dd76aef977b6ec921ad",
                "sha512_sri": "sha512-kvkENoJcUmFnf/V0HXUTbeJp6FPMIJDbcBTAqEB2OIyIIoFe0nxzUEcymdZ3n0zNaaSWd7sVTcsFIuNzJnwCcQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@usemosaik/template-react-js/MAL-2026-16047.json"