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
Aliases
  • GHSA-67fh-9pjj-6cpw
Published
2026-07-15T03:41:32Z
Modified
2026-08-21T10:30:11Z
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.

Source: ghsa-malware (3a8284e0fd750df33fa07403851fb3e5ebef89cf00b02c212ec0e33069937842)

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-010605",
            "import_time": "2026-07-15T04:32:05.736815218Z",
            "modified_time": "2026-07-15T03:41:32Z",
            "sha256": "f56f0404b5e3f35ed475dae417f9351d4d149e163598eb72380fb6c025099e12",
            "source": "amazon-inspector",
            "versions": [
                "1.1.2"
            ]
        },
        {
            "id": "GHSA-67fh-9pjj-6cpw",
            "import_time": "2026-08-21T10:25:20.108126879Z",
            "modified_time": "2026-08-21T10:17:10Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "3a8284e0fd750df33fa07403851fb3e5ebef89cf00b02c212ec0e33069937842",
            "source": "ghsa-malware"
        }
    ]
}
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

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

Affected versions

1.*
1.1.2

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": "dist/index.js",
            "sha256": "c1ab545a64fc86999e171ea3429d903ebce6c47a3d55dddc8bc91807c547c75a",
            "tlsh": "635111a338c1d5710ff058f9647b8143f1f51e1b61049995e389aca7b0f8c4c51b693d"
        },
        {
            "path": "package.json",
            "sha256": "5a1e85f2b1ae2ba26cb3138cdad302f42e4974c6242711b01f712f8f1dc8167b",
            "tlsh": "46019e34c575ca630bc412f55cba9653e5b28d1f9408bc0832c6012c8b8fbab04fc2dd"
        }
    ],
    "package_integrity": [
        {
            "filename": "polygon-toolkit-validator-1.1.2.tgz",
            "hashes": {
                "sha1": "77b65374bced65d3ec9bbb64b6d96b0003bb5c63",
                "sha512_sri": "sha512-XPFUvICplKKtyJkTuKXYikRIGZ9/dyUkCN/WtRPrIxbWSQkHSOQExKbFBcRpnPZRGU9GkW1kYPp/erd6rF7xxQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polygon-toolkit-validator/MAL-2026-10641.json"