MAL-2026-10413

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-base/MAL-2026-10413.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10413
Aliases
  • GHSA-26h4-2435-hp66
Published
2026-07-13T06:51:45Z
Modified
2026-07-23T23:05:11.465874277Z
Summary
Malicious code in eth-base (npm)
Details

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

Source: amazon-inspector (bcc98bc680f3d0b8c6dcf396d9f2425a5153658259014384cedf82698413755b)

The published lib/index.js contains ~60KB of obfuscated JavaScript appended after a copy of the legitimate web3.js web3-core-subscriptions module. On require(), the appended IIFE loads axios, issues an HTTPS request to a URL reconstructed at runtime from custom base-85 alphabets, and on a specific response constructs new Function('require', <remote-token>)(require) to execute attacker-supplied JavaScript in-process with full Node require access. The corresponding src/index.js is the clean upstream module, indicating the payload was injected only into the shipped build. The package name and description impersonate a web3.js helper (LGPL header still credits Fabian Vogelsteller fabian@ethereum.org) while the repository field is empty. Consumers who require this package receive arbitrary code execution on the installing host at load time.

Source: ghsa-malware (41bca5a4bf7e0ef4a8bb255ed20cefe3835b2b015efed111ce1f87584b285ac6)

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": [
        {
            "import_time": "2026-07-13T07:40:12.175169146Z",
            "sha256": "bcc98bc680f3d0b8c6dcf396d9f2425a5153658259014384cedf82698413755b",
            "modified_time": "2026-07-13T06:51:45Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009837",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "import_time": "2026-07-23T22:48:43.747064281Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-23T20:10:38Z",
            "sha256": "41bca5a4bf7e0ef4a8bb255ed20cefe3835b2b015efed111ce1f87584b285ac6",
            "id": "GHSA-26h4-2435-hp66",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / eth-base

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-base/MAL-2026-10413.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "e10aff66d009d9c112131880ed749fd55105931698bf60005f7a69bb3201cbcd",
            "path": "lib/index.js",
            "tlsh": "54638a4a59c7b017aa8091d9d8c4a1c5b692293bff8f391cfd44a24eef47d80d2fb095"
        },
        {
            "sha256": "6e929f6afa0314788a5da0d125dd1f88ac530fea0cd31c9c6ae62ed4bf73a142",
            "path": "package.json",
            "tlsh": "43016d38c8655cb305de62a6fc99454292b5520f0d18bc48339c62ac4f6d1df54fe79e"
        }
    ],
    "package_integrity": [
        {
            "filename": "eth-base-1.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-jiqLppgvoS7DKPtqxSqitcN5X8heh9/KsY9jRd8HJsjEl+3uWn8q1cWmjcMUxWj3286K1nP/2G688IE+tgeMmg==",
                "sha1": "12e2dc0a3c9d53fb5bef37f3dde4d49ec1ece92d"
            }
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "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."
    }
]