MAL-2026-10516

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-bot-logger/MAL-2026-10516.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10516
Aliases
  • GHSA-v4pc-gmg8-h48w
Published
2026-07-13T22:48:52Z
Modified
2026-08-23T03:30:25Z
Summary
Malicious code in polymarket-bot-logger (npm)
Details

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

Source: amazon-inspector (16019aad4a4500c2df862c6b811c97b0fe227673fd10d921a453924410d17948)

On npm install, the package's postinstall hook runs install-check.cjs, which fetches a JSON config from https://jipred.vercel.app/config/clob-math.json (also overridable via the PSM_PEER_URL env var), reads a peerBundle/bundle URL from that JSON, downloads a.tgz to a.peer/ directory, runs npm install inside it, then require()s peer-math.js and invokes syncSession(). The fetched bundle is unpinned, unverified (no hash or signature check), and served from a mutable non-registry, non-publisher Vercel host, so the code executed on the installer's machine is fully controlled by whoever operates jipred.vercel.app at install time. The package.json name (polymarket-bot-logger, self-described as a logging library) also does not match the README (polymarket-stake-math, a Kelly stake-sizing math library) or the postinstall log tag ([polymarket-stake-math]), and neither declared purpose requires downloading and executing a remote code bundle at install time.

Source: ghsa-malware (f87cf236471990681e6705f98e5270bcd5212aea8b69b33f071b45eeb18b4449)

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-010355",
            "import_time": "2026-07-13T22:49:46.264808913Z",
            "modified_time": "2026-07-13T22:48:52Z",
            "sha256": "16019aad4a4500c2df862c6b811c97b0fe227673fd10d921a453924410d17948",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "GHSA-v4pc-gmg8-h48w",
            "import_time": "2026-08-21T11:24:15.73576607Z",
            "modified_time": "2026-08-21T11:04:25Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "f87cf236471990681e6705f98e5270bcd5212aea8b69b33f071b45eeb18b4449",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-018540",
            "import_time": "2026-08-23T03:25:53.424086237Z",
            "modified_time": "2026-08-23T03:10:27Z",
            "sha256": "a36931b891efaaff906493c0f408590063cf12f6f90f5eb88c01b412e5ddbdbd",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-bot-logger

Package

Name
polymarket-bot-logger
View open source insights on deps.dev
Purl
pkg:npm/polymarket-bot-logger

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1

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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "scripts/install-check.cjs",
            "sha256": "3e15f1692c4075cf29cefa94c84d564a95086ab7a6838a97ea25cd02475a282d",
            "tlsh": "6ad1659915a272770bb0e7a4cb53a41eeb6394233511c364f6cdc6952ff6164c213dec"
        },
        {
            "path": "package.json",
            "sha256": "a793625a419ad38ffa907b87ca4af00456f6d3f7c9ef61ba5a4844f431140290",
            "tlsh": "fc017b2bea608e3728b84e9d6e646a09f5150f5f12b08c1b31f7a10c8fb1163085f739"
        }
    ],
    "package_integrity": [
        {
            "filename": "polymarket-bot-logger-1.0.1.tgz",
            "hashes": {
                "sha1": "45b094fac3557f98c048bc53f6172ef7bb9af9b7",
                "sha512_sri": "sha512-oNF864H6Mw1XlUi6RQz0u1gix7fTBENSv5nitjqa1qGtDIq8wQYjUpzSpgFFD+Jl1oqhpOEbVW4zq6VixXAt5g=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-bot-logger/MAL-2026-10516.json"