MAL-2026-4553

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-wallet-package/MAL-2026-4553.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4553
Aliases
  • GHSA-7pvf-g7jg-rxpj
Published
2026-05-20T18:24:59Z
Modified
2026-07-23T08:04:54Z
Summary
Malicious code in ethers-wallet-package (npm)
Details

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

Source: amazon-inspector (c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec)

Package name impersonates the official @ethersproject/wallet, and package.json spoofs the ethers.js maintainer identity (author 'Richard Moore me@ricmoo.com'). The compiled lib/index.js wraps the Wallet constructor with an obfuscated VM-based interpreter whose base64-encoded op-array contains the plaintext target URL https://api.telegram.org/bot/sendMessage and chat_id 7959381237. On every new Wallet(privateKey) call, the constructor POSTs the private key as JSON to that Telegram bot, giving the attacker full control over the victim's Ethereum funds. The Wallet class is the package's only advertised API, so any caller that imports the package and constructs a wallet leaks the key on first use.

Source: ghsa-malware (220ce4e0be76da392304c8cfc16d134919d9a35c6925ea0a6df8c9e562ed0e62)

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-003584",
            "import_time": "2026-05-26T05:50:54.450531163Z",
            "modified_time": "2026-05-20T18:24:59Z",
            "sha256": "c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec",
            "source": "amazon-inspector",
            "versions": [
                "5.8.0"
            ]
        },
        {
            "id": "GHSA-7pvf-g7jg-rxpj",
            "import_time": "2026-07-23T07:45:08.333667539Z",
            "modified_time": "2026-07-23T01:01:29Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "220ce4e0be76da392304c8cfc16d134919d9a35c6925ea0a6df8c9e562ed0e62",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / ethers-wallet-package

Package

Name
ethers-wallet-package
View open source insights on deps.dev
Purl
pkg:npm/ethers-wallet-package

Affected ranges

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

Affected versions

5.*
5.8.0

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": "lib/index.js",
            "sha256": "e55dc8e38a487b0cbfb8a526c07240f04070062a26a459a604195b81317a456a",
            "tlsh": "e9d3b8029386747b0176d1b44bebece5f27a9c53121434eef50d8ea07f813a9067aadc"
        },
        {
            "path": "package.json",
            "sha256": "e044635eb121d847ec7212b5f1445692843fa75b52eb3afd25f75bb9c8a160e5",
            "tlsh": "5d315981c93dcee757cc1a94441d68cab13a48174844b85d339a492a4f8f32f2efd94f"
        }
    ],
    "package_integrity": [
        {
            "filename": "ethers-wallet-package-5.8.0.tgz",
            "hashes": {
                "sha1": "e3cd06a43482b9f48fe222129d551d032fa1e30f",
                "sha512_sri": "sha512-z3a4ECBBTeWN6UcdO8zzp3d527LW1CBEuTYs3qiPHGu7SqCpMvmx8Qi+urBmqYDV8hL7HTSup2KbZ//b0ylVdw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-wallet-package/MAL-2026-4553.json"