MAL-2026-6714

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-trading-developer-tool/MAL-2026-6714.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6714
Aliases
  • GHSA-qh4r-g8mr-v3xp
Published
2026-07-01T20:37:24Z
Modified
2026-08-21T17:30:11.625024558Z
Summary
Malicious code in polymarket-trading-developer-tool (npm)
Details

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

Source: amazon-inspector (30ffc35841039a7a95d8b5590db211f34b662975513f3a054b8be282f0858c99)

The package's postinstall lifecycle script performs install-time remote code execution. It reads a bundle URL from a JSON config hosted at pm-trading-dev-tools-be.vercel.app/config/clob-math.json (the package's declared homepage), downloads the referenced.tgz archive to a temporary directory, extracts it, runs npm install --omit=dev inside the extracted directory (executing lifecycle scripts of any transitive dependencies declared in the fetched package.json), then require()s peer-math.js from the fetched bundle and invokes its syncSession() export in-process. There is no integrity check, no pinned version, and no signature verification; the config endpoint is mutable and can point the loader at any URL. The behavior also honors PSMPEERURL / PSMSYNCCONFIG environment overrides. The shipped library code (kelly.js) is a small helper serving as cover; the package name and Polymarket branding present as a legitimate developer tool while the postinstall pipeline delivers arbitrary attacker-controlled JavaScript to the installer's machine.

Source: ghsa-malware (f96e7ef4d88a90cdfa12deedbb4145453ed757835abab167cf66559bd349f90d)

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": [
        {
            "versions": [
                "0.1.1"
            ],
            "source": "amazon-inspector",
            "sha256": "ef1cd8b921e779a17329eff2166e4ca81602e51e9079399e39157c8cf7aee4ec",
            "modified_time": "2026-07-01T20:37:24Z",
            "id": "IN-MAL-2026-007885",
            "import_time": "2026-07-01T21:04:20.02224047Z"
        },
        {
            "versions": [
                "0.1.2"
            ],
            "source": "amazon-inspector",
            "sha256": "30ffc35841039a7a95d8b5590db211f34b662975513f3a054b8be282f0858c99",
            "modified_time": "2026-07-09T15:47:30Z",
            "import_time": "2026-07-09T16:20:53.073230601Z",
            "id": "IN-MAL-2026-009232"
        },
        {
            "id": "GHSA-qh4r-g8mr-v3xp",
            "source": "ghsa-malware",
            "sha256": "f96e7ef4d88a90cdfa12deedbb4145453ed757835abab167cf66559bd349f90d",
            "modified_time": "2026-08-21T16:53:42Z",
            "import_time": "2026-08-21T17:24:51.913044079Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-trading-developer-tool

Package

Name
polymarket-trading-developer-tool
View open source insights on deps.dev
Purl
pkg:npm/polymarket-trading-developer-tool

Affected ranges

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

Affected versions

0.*
0.1.1
0.1.2

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "59a1459519a2727746b1ebb8c722901dfe2340233521c350f6de96952fb72a4c352dec",
            "sha256": "6802db59168709186a085f1bf6c162288ae0482d66a35816bda9f0704d0b709b",
            "path": "scripts/install-check.cjs"
        },
        {
            "tlsh": "edf04437da605d3624bc8e9d8e682a40f8660b1f22b00d1bb5bb61584fb2162085b73a",
            "sha256": "98db397311e1a380c88d7842e39839da11f56a6daab2c33fc039a6772d29b41b",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "polymarket-trading-developer-tool-0.1.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-7ZwqiUrG5571XmVN52vX0FV+ZVx1mzzHqAokHOokxbyMbjuxuBlgYPPdzK6/VHna6r424wPnW+TwHOBxDdY1lA==",
                "sha1": "a3b62913e42429f82d88eba27be4db16c1f7eb31"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-trading-developer-tool/MAL-2026-6714.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]