MAL-2026-10499

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-lib-utils/MAL-2026-10499.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10499
Aliases
  • GHSA-q57p-j3v9-q767
Published
2026-07-13T21:26:35Z
Modified
2026-07-15T05:19:52.420472042Z
Summary
Malicious code in eth-lib-utils (npm)
Details

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

Source: amazon-inspector (13895e2e8ee4aa9683c2fd6f0f873a38b19bbc5af207233e22c51668bc7dba41)

Package eth-lib-utils@5.2.3 impersonates @ethereumjs/util / ethereumjs-util (README, author list, repository URL, and source tree copied from the legitimate package). The published Node build dist/index.js contains an unconditional require("assertcore") at module load that is absent from the TypeScript source src/index.ts and from the parallel dist.browser/index.js — the import was injected only into the shipped artifact. The required name assertcore is not declared in package.json; the declared dependency is the differently-named assertcoreutils (^2.3.2), an unrelated name shaped to look like an Ethereum companion package. The effect on a consumer that runs require('eth-lib-utils') in Node is to load whatever code is published under assertcore / assertcoreutils in the installer's process, while the package presents itself as a drop-in for a widely-used Ethereum utility. This is the standard typosquat-plus-transitive-dropper shape: the lure package looks like a clean re-export, the harmful code lives one resolution hop away in a name the installer never asked for.

Source: ghsa-malware (589c50080d1bc6f3f4325e1cd580084f98378fbfced6109dbcbba5fefc0b14d7)

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-010321",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T21:49:33.694469044Z",
            "modified_time": "2026-07-13T21:26:53Z",
            "sha256": "13895e2e8ee4aa9683c2fd6f0f873a38b19bbc5af207233e22c51668bc7dba41",
            "versions": [
                "5.2.3"
            ]
        },
        {
            "id": "IN-MAL-2026-010320",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T21:49:33.647911251Z",
            "modified_time": "2026-07-13T21:26:46Z",
            "sha256": "93ec91ddede1420c9075ae27ffa396f32361cc946c2d82e8c25658b082a85118",
            "versions": [
                "5.2.5"
            ]
        },
        {
            "id": "IN-MAL-2026-010319",
            "source": "amazon-inspector",
            "import_time": "2026-07-13T21:49:33.586245623Z",
            "modified_time": "2026-07-13T21:26:35Z",
            "sha256": "f0f1d4a3f328594e5de4b6ef2e293972844da1fa14c8aaffc30dd2299519d15a",
            "versions": [
                "5.2.4"
            ]
        },
        {
            "id": "GHSA-q57p-j3v9-q767",
            "source": "ghsa-malware",
            "import_time": "2026-07-15T05:00:56.809979714Z",
            "modified_time": "2026-07-14T23:14:25Z",
            "sha256": "589c50080d1bc6f3f4325e1cd580084f98378fbfced6109dbcbba5fefc0b14d7",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / eth-lib-utils

Package

Affected ranges

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

Affected versions

5.*
5.2.3
5.2.4
5.2.5

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "b58ae60ae0836b1569599e7f53790f6a70bb1ecd60e5b1232b5c76361c0afa22",
            "path": "dist/index.js",
            "tlsh": "8a51cc1b3658b8f583f860f81b2bd1c3f931593301b29a24866cd7f0dda698a85f4e1d"
        },
        {
            "sha256": "a3964cfba5c2278bde4b39add225e317f22aa033f9020b116b0316ef7e3a838b",
            "tlsh": "845148b6cc385de30fc829e4a4be12827225551b9c94fc49736e421d4f4e56f32bd29d",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "eth-lib-utils-5.2.3.tgz",
            "hashes": {
                "sha1": "b9d29aa381e8fd44e00fb39f3a1250ccb2478151",
                "sha512_sri": "sha512-L/0I+LqIiMa5o8ADswcES2J9nk/WtR52qD0tluH1kmn6kD64HmF83NaTcrFQ7dJNoYul1OCK7LC6eySFaN7Vlg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-lib-utils/MAL-2026-10499.json"
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]