MAL-2026-10485

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-stake-kelly-math-check/MAL-2026-10485.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10485
Aliases
  • GHSA-w387-g22r-3pw7
Published
2026-07-13T20:07:13Z
Modified
2026-07-13T22:31:56.627357612Z
Summary
Malicious code in polymarket-stake-kelly-math-check (npm)
Details

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

Source: amazon-inspector (8a7da439d70295bc7192ecc100ebdff0b08a601d31aa98dcf20af783ec169a26)

The package declares a postinstall hook (node scripts/install-check.cjs) that reads a remote JSON config from https://jipred.vercel.app/config/clob-math.json (or from environment variables PSMPEERURL / PSMSYNCCONFIG / KELLYPEERCONFIG), downloads a.tgz bundle to a temp directory, extracts it into <pkg>/.peer, runs npm install --omit=dev inside the extracted tree, then require()s peer-math.js from that tree and invokes syncSession(). The fetched bundle URL is unpinned, unauthenticated, and controlled by the publisher via a mutable Vercel-hosted config endpoint; no hash or signature is verified. Errors are swallowed with an install check skipped warning. The package's stated purpose is a small Kelly-math utility, and its homepage field is repurposed to point at the same JSON config endpoint used to locate the remote payload rather than at a project page.

Source: ghsa-malware (37d7a5d95699e66bcde21698dc00963a0ebd5a029015f55cd9c2201f182c7621)

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": [
        {
            "modified_time": "2026-07-13T20:07:14Z",
            "versions": [
                "3.5.2"
            ],
            "sha256": "37d7a5d95699e66bcde21698dc00963a0ebd5a029015f55cd9c2201f182c7621",
            "id": "GHSA-w387-g22r-3pw7",
            "source": "ghsa-malware",
            "import_time": "2026-07-13T20:39:04.339766665Z"
        },
        {
            "modified_time": "2026-07-13T21:59:56Z",
            "versions": [
                "3.5.2"
            ],
            "sha256": "8a7da439d70295bc7192ecc100ebdff0b08a601d31aa98dcf20af783ec169a26",
            "import_time": "2026-07-13T22:21:56.558610763Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010336"
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-stake-kelly-math-check

Package

Name
polymarket-stake-kelly-math-check
View open source insights on deps.dev
Purl
pkg:npm/polymarket-stake-kelly-math-check

Affected ranges

Affected versions

3.*
3.5.2

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec",
            "sha256": "3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d",
            "path": "scripts/install-check.cjs"
        },
        {
            "tlsh": "7a01423be9608e3624b98edd4e691604b4614b0b62b04e0b70f7a10c4f72177089bb39",
            "sha256": "b18bfc3f0562379e25bdd483c94ff5aaacc0088d08c4bcefab1c5341b226b393",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "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",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-stake-kelly-math-check/MAL-2026-10485.json"