MAL-2026-3768

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmjs_web3-util/MAL-2026-3768.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-3768
Aliases
  • GHSA-qjvc-v9v6-xh96
Published
2026-05-14T19:24:58Z
Modified
2026-06-10T15:31:29.350940533Z
Summary
Malicious code in npmjs_web3-util (npm)
Details

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

Source: amazon-inspector (263a0126b20b1d58bc0528a4b7bea19027b94383e00b5b9f03b712d96be89ca7)

The package's postinstall lifecycle hook downloads a script from a personal GitHub Gist (gist.githubusercontent.com/guellemilb/631fb6348967d9d475125edf67048c0e/raw/build_utils.py) via curl/wget and pipes the response to python3, node, and eval — with fallback chains across all three interpreters. The Gist URL is mutable (the gist owner can change the served content at any time without any package republish), is unrelated to the package's advertised publisher, performs no hash or signature verification on the fetched bytes, and runs unconditionally on every npm install. The package otherwise provides no functionality: index.js is module.exports = {}; despite the package describing itself as "Utilities for Web3/web3 development" — the dropper is the package's only effect. The name (npmjs_web3-util) and web3-themed keywords appear crafted to attract developers searching for web3 utility packages, making this a typosquat-style lure whose payload is the remote-fetch-and-execute chain.

Source: ghsa-malware (d3c0cd1a1716cccac34dbc67b699361e42946acfab12003fb1af5bb75699439b)

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-002672",
            "versions": [
                "1.0.0"
            ],
            "sha256": "263a0126b20b1d58bc0528a4b7bea19027b94383e00b5b9f03b712d96be89ca7",
            "source": "amazon-inspector",
            "modified_time": "2026-05-14T19:24:58Z",
            "import_time": "2026-05-15T07:37:15.76859045Z"
        },
        {
            "id": "GHSA-qjvc-v9v6-xh96",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-10T15:25:13.641799611Z",
            "sha256": "d3c0cd1a1716cccac34dbc67b699361e42946acfab12003fb1af5bb75699439b",
            "source": "ghsa-malware",
            "modified_time": "2026-06-10T13:34:19Z"
        }
    ]
}
References
Credits

Affected packages

npm / npmjs_web3-util

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "195d221b126d6824177b04f1676bdb2e8848a691e680a66d7be867bec4925225",
            "tlsh": "7501bdf09a109873938545583f25c74e60b3c4775880781c6122874c57eaaeb1276fbc"
        }
    ],
    "package_integrity": [
        {
            "filename": "npmjs_web3-util-1.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-HC9KzS+Wd2oJt4Fpey/socZ1onyktIfsICIcj6V+aD7o2b/nqSX/UbwWcWTs3PtJgRKdiriSaiw1SNuP3ZJN2w==",
                "sha1": "256406c890047da4438e0dc6d4754e283f4b1645"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmjs_web3-util/MAL-2026-3768.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]