MAL-2026-12102

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/solana-web3/MAL-2026-12102.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12102
Published
2026-08-05T06:25:34Z
Modified
2026-08-05T07:20:57.845753269Z
Summary
Malicious code in @wethenorth12/solana-web3 (npm)
Details

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

Source: amazon-inspector (54d27d76902370899c3362602581cdec59396e1ece2bd87976f1798083957f89)

On require of the package's main entry (index.js), the code collects process.env, hostname, username, homedir, platform, cwd and a timestamp, JSON-encodes and base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id 8969499041. A tmp flag file is used to suppress repeat sends. The payload includes the full process.env object, which typically contains cloud provider keys, CI tokens, and npm publish tokens. The package name @wethenorth12/solana-web3 mimics @solana/web3.js, package.json forges the author as 'solana-labs' with a spoofed github.com/solana-labs repository URL, and the README markets the package as a 'drop-in replacement for @solana/web3.js'. Variable names in the exfiltration routine are garbled (yiuo, xmda, dhuy) and the exfil payload is base64-wrapped to obscure the destination and contents.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-013454",
            "import_time": "2026-08-05T07:06:48.244944279Z",
            "sha256": "54d27d76902370899c3362602581cdec59396e1ece2bd87976f1798083957f89",
            "versions": [
                "2.1.0"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T06:25:34Z"
        }
    ]
}
References
Credits

Affected packages

npm / @wethenorth12/solana-web3

Package

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

Affected ranges

Affected versions

2.*
2.1.0

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": "index.js",
            "tlsh": "0f21448c37f2b98e113266c2592f250f73bbc6a20488e760d5a4e1c36f742c89965b98",
            "sha256": "d6face0d23271eb72604a9aff8f8006b0f21705cd36331584f2517158ff8a36b"
        }
    ],
    "package_integrity": [
        {
            "filename": "solana-web3-2.1.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-5wKO4lgXrEIs3Z59XypXy03H7VmjsmbnRwUpFrAuEbzoY7p9QVXkpJKf7h3HnfWP8l3vgveamH9tc89PmUksHg==",
                "sha1": "4a857fcdbdfeb3366f808ea86e00ec71a9c64556"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/solana-web3/MAL-2026-12102.json"