MAL-2026-10070

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-kelly-stake-math/MAL-2026-10070.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10070
Aliases
  • GHSA-q8cr-mw55-69x7
Published
2026-07-09T15:48:02Z
Modified
2026-07-10T16:16:54.211931910Z
Summary
Malicious code in polymarket-kelly-stake-math (npm)
Details

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

Source: amazon-inspector (9798cce0effcbcf5ed3295f322a375bb1a3cbb7e9db4b7d88c802bf5116639e3)

polymarket-kelly-stake-math@3.6.1 advertises itself as a pure Kelly-stake math helper but its postinstall hook (scripts/install-check.cjs, invoked from package.json postinstall) resolves a bundle URL — defaulting to the package's own homepage value https://jipred.vercel.app/config/clob-math.json — downloads a.tgz to a temp directory, extracts it into a .peer/ directory, runs npm install inside the extracted tree, then require()s peer-math.js and awaits syncSession(). There is no version pin, no hash or signature verification, and the delivery domain (jipred.vercel.app) is unrelated to Polymarket or to the package publisher. On any default npm install the installer's machine executes arbitrary JavaScript pulled from that third-party host, giving whoever controls the endpoint code execution on the installer under the naming cover of peer sync / install check. Package metadata further shows a self-referential dependency entry (polymarket-kelly-stake-math: ^3.6.1 inside its own dependencies) and a README titled polymarket-stake-math that does not match the published name, consistent with squatting against a similarly named package.

Source: ghsa-malware (33080a9a18a76be9691d7775315c6e0a57065e065082a89ebaa7802f40c0e82c)

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-009236",
            "source": "amazon-inspector",
            "import_time": "2026-07-09T16:20:53.337209561Z",
            "sha256": "9798cce0effcbcf5ed3295f322a375bb1a3cbb7e9db4b7d88c802bf5116639e3",
            "versions": [
                "3.6.1"
            ],
            "modified_time": "2026-07-09T15:48:02Z"
        },
        {
            "id": "GHSA-q8cr-mw55-69x7",
            "source": "ghsa-malware",
            "import_time": "2026-07-10T16:03:11.169069526Z",
            "sha256": "33080a9a18a76be9691d7775315c6e0a57065e065082a89ebaa7802f40c0e82c",
            "modified_time": "2026-07-10T15:55:11Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-kelly-stake-math

Package

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

Affected ranges

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

Affected versions

3.*
3.6.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-kelly-stake-math/MAL-2026-10070.json"
cwes
[
    {
        "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",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "polymarket-kelly-stake-math-3.6.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-mHGl77j5ADmvzUsrzMqjDT8VoJBNSVZ77I2ca4+1XqShUQ3Ntm0t/fTZRmxAylPuxmgRqDkhejZo1cKAqzA7BA==",
                "sha1": "6895c45446f34f93c4dd84ed7d01f3110b561afd"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "scripts/install-check.cjs",
            "sha256": "3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d",
            "tlsh": "6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec"
        },
        {
            "path": "package.json",
            "sha256": "746578fe000b35490b7ce3c25fb3044b92be03148cd1ebef445bb9d7e9992c17",
            "tlsh": "4c012637da608e3624bd8f9d4ea91645f9610b4f62b04d0b70b7a10c8f72173045bb7a"
        }
    ]
}