MAL-2026-10199

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-kelly-math-stake/MAL-2026-10199.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10199
Published
2026-07-12T15:12:02Z
Modified
2026-07-12T15:31:56.830809582Z
Summary
Malicious code in polymarket-kelly-math-stake (npm)
Details

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

Source: amazon-inspector (f2cf5ba9cd75b1a773e3a04e6eb45778894e04fd1d55b2e8ad03ae97deb41d16)

polymarket-kelly-math-stake@3.6.2 runs a postinstall script (scripts/install-check.cjs) that fetches a JSON config from https://jipred.vercel.app/config/clob-math.json, resolves a.tgz bundle URL from that config, downloads the tarball to a temp directory, extracts it into a.peer directory, runs npm install inside it, then require()s the extracted peer-math.js and invokes syncSession(). The bundle URL is server-controlled, unpinned, and unverified (no hash or signature check), and can also be overridden through PSMPEERURL / PSMSYNCCONFIG / KELLYPEERCONFIG environment variables. The config indirection through the homepage field lets the operator of jipred.vercel.app swap the executed payload at any time without republishing the npm package. The package's advertised library surface (index.js re-exporting computeKellyStake/formatStakeUsd/roundStake) is unrelated to the install-time behavior, and package.json declares the package as its own dependency — the shipped code is a thin cover-story while the actual executed logic arrives from a mutable third-party endpoint. Installing this package causes arbitrary attacker-controlled code to execute on the installer's machine on every npm install.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "3.6.2"
            ],
            "id": "IN-MAL-2026-009751",
            "import_time": "2026-07-12T15:24:47.90115111Z",
            "modified_time": "2026-07-12T15:12:02Z",
            "sha256": "f2cf5ba9cd75b1a773e3a04e6eb45778894e04fd1d55b2e8ad03ae97deb41d16",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-kelly-math-stake

Package

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

Affected ranges

Affected versions

3.*
3.6.2

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec",
            "sha256": "3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d",
            "path": "scripts/install-check.cjs"
        },
        {
            "sha256": "afdf804b48f56bdc7a615121dd1a0a6e4cf32010eedd8db732e5c6e556e5cecd",
            "tlsh": "a5012b37da608e3724b95edd4d691544f5610b0f72b04d1b70fb615c4b72173045b779",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "polymarket-kelly-math-stake-3.6.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-i6PxXCVkNfV14HVhVFwK7QQpGiJOjot0+ZABA1SBr4SxXQvcGQ0oln88vojl2g/WQzHhQi2b6/Qus1eTkGYQXg==",
                "sha1": "20e2a6dba911e8ed663614b7abfe029811fe2f1f"
            }
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-kelly-math-stake/MAL-2026-10199.json"