MAL-2026-13941

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@solana-js/web3/MAL-2026-13941.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13941
Published
2026-08-13T17:22:49Z
Modified
2026-08-13T17:30:12.566505880Z
Summary
Malicious code in @solana-js/web3 (npm)
Details

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

Source: amazon-inspector (9b539591552f3e960f65ceb70d946bc56f240f9bdb1400c501723aa32fd305ec)

Package name @solana-js/web3 impersonates the legitimate @solana/web3.js SDK, and package.json falsely attributes authorship to 'Solana Labs' with a solana.com homepage. The exported API is a non-functional stub (Connection.getBalance returns 0, sendTransaction returns random bytes) — no real Solana client functionality is present. On install, scripts/postinstall.js detects Windows and spawns a hidden PowerShell (-NoP -W Hidden -Exec Bypass) with a base64-encoded command. The decoded PowerShell performs an AMSI bypass via reflection over System.Management.Automation.AmsiUtils, downloads a binary payload from https://files.catbox.moe/a3loxy.bin, and executes it in-process using VirtualAlloc/CreateThread. The postinstall script further hex-escapes API names ('child_process', 'powershell', 'platform', 'win32') and fragments the PowerShell payload to hinder review. The result is arbitrary remote code execution on any Windows host that runs npm install against this package, with the shellcode fetched from an anonymous, mutable file host (files.catbox.moe) — a known-bad-infrastructure dropper pattern.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-017665",
            "import_time": "2026-08-13T17:24:46.477286859Z",
            "sha256": "9b539591552f3e960f65ceb70d946bc56f240f9bdb1400c501723aa32fd305ec",
            "versions": [
                "1.91.3"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-13T17:22:49Z"
        }
    ]
}
References
Credits

Affected packages

npm / @solana-js/web3

Package

Name
@solana-js/web3
View open source insights on deps.dev
Purl
pkg:npm/%40solana-js/web3

Affected ranges

Affected versions

1.*
1.91.3

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "scripts/postinstall.js",
            "tlsh": "7a41f98ab05aa01753cc05a3c0047cea83f9cdb5b9346b67634cb1cd082560bc5ff499",
            "sha256": "924c0025ffb6eff7bb08ac06107d0ff49b02df921d0af87c84538d321455e03c"
        },
        {
            "path": "package.json",
            "tlsh": "81f0ac11ce908d632bc81bcf4c378081a441480b0950bc0d37c3602ccb4d76f24bea3d",
            "sha256": "fa37110ccb79922fb6c358896b72b23df2cd55011cf4f35040b943e6d7cbecb4"
        }
    ],
    "package_integrity": [
        {
            "filename": "web3-1.91.3.tgz",
            "hashes": {
                "sha1": "965e4486eb0074c29c082fa07a72758a182d412d",
                "sha512_sri": "sha512-sAkvC9WrANT8e1vjN4nsFHCWzmQqiHekF91NiYIiLx5SOreA6Q44qzydCAwg2+O9lZSMm+1XLi2AgXySb5FX3g=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@solana-js/web3/MAL-2026-13941.json"