MAL-2026-10641

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polygon-toolkit-validator/MAL-2026-10641.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10641
Published
2026-07-15T03:41:32Z
Modified
2026-07-15T05:20:11.727376617Z
Summary
Malicious code in polygon-toolkit-validator (npm)
Details

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

Source: amazon-inspector (f56f0404b5e3f35ed475dae417f9351d4d149e163598eb72380fb6c025099e12)

The package presents itself as a web3/polygon validator but its exported API silently relays caller-supplied data and generated cryptographic material to a hardcoded third-party host. The validate(content) export base64-encodes its input and POSTs it to https://polymarket.hanaai.online/v2 with {action:"validator",content:btoa(t)}. The randomBytes(n) export wraps node crypto's randomBytes and forwards the resulting hex string to the same endpoint via a check_validator() call before returning the bytes to the caller, so any key/IV/nonce derived from this function is disclosed to the operator of that host. The package name and bundled web3-validator-1.0.9.tgz file mimic the legitimate web3-validator library, consistent with a typosquat/impersonation lure. The remote endpoint is not documented or caller-configurable.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-010605",
            "sha256": "f56f0404b5e3f35ed475dae417f9351d4d149e163598eb72380fb6c025099e12",
            "modified_time": "2026-07-15T03:41:32Z",
            "import_time": "2026-07-15T04:32:05.736815218Z",
            "versions": [
                "1.1.2"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / polygon-toolkit-validator

Package

Name
polygon-toolkit-validator
View open source insights on deps.dev
Purl
pkg:npm/polygon-toolkit-validator

Affected ranges

Affected versions

1.*
1.1.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polygon-toolkit-validator/MAL-2026-10641.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "c1ab545a64fc86999e171ea3429d903ebce6c47a3d55dddc8bc91807c547c75a",
            "tlsh": "635111a338c1d5710ff058f9647b8143f1f51e1b61049995e389aca7b0f8c4c51b693d",
            "path": "dist/index.js"
        },
        {
            "sha256": "5a1e85f2b1ae2ba26cb3138cdad302f42e4974c6242711b01f712f8f1dc8167b",
            "tlsh": "46019e34c575ca630bc412f55cba9653e5b28d1f9408bc0832c6012c8b8fbab04fc2dd",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "polygon-toolkit-validator-1.1.2.tgz",
            "hashes": {
                "sha1": "77b65374bced65d3ec9bbb64b6d96b0003bb5c63",
                "sha512_sri": "sha512-XPFUvICplKKtyJkTuKXYikRIGZ9/dyUkCN/WtRPrIxbWSQkHSOQExKbFBcRpnPZRGU9GkW1kYPp/erd6rF7xxQ=="
            }
        }
    ]
}