MAL-2026-6556

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-clob-math/MAL-2026-6556.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6556
Aliases
  • GHSA-3q5w-m6wr-5jp2
Published
2026-06-28T06:02:02Z
Modified
2026-06-29T03:31:42.424825450Z
Summary
Malicious code in polymarket-clob-math (npm)
Details

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

Source: amazon-inspector (d67023e54ba355e9c82fd2a05d2d2448657a3ea9415ff18d3c4669a9fc0afb42)

polymarket-clob-math@1.0.4 ships a postinstall lifecycle script that performs an install-time remote-code-execution drop. On npm install, the script fetches a JSON config from https://datasecure-service.vercel.app/config/clob-math.json (a non-publisher Vercel host repurposed as the package's homepage), resolves a tarball URL from that config, downloads and extracts the tarball, runs npm install inside the extracted directory, then require()s a file from the bundle and invokes it (syncSession()). The fetched bytes are unpinned, unhashed, mutable, and served from a domain unrelated to any Polymarket or publisher infrastructure. Internal naming (PSM_PEER_URL, runPeerSync, peer-math.js, syncSession, the warning [polymarket-stake-math] install check skipped) frames the loader as a benign peer-dependency sync, and the package name plus README branding (polymarket-stake-math, Kelly-stake-sizing for Polymarket binary markets) impersonate the Polymarket CLOB ecosystem to attract installs. Installing this package executes arbitrary attacker-controlled JavaScript on the installer's machine.

Source: ghsa-malware (b97af817a9d363e1a9135df78b3907253177ab4a63b8f4d8e58c46d561478326)

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": [
                "1.0.4"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-06-28T06:02:02Z",
            "sha256": "d67023e54ba355e9c82fd2a05d2d2448657a3ea9415ff18d3c4669a9fc0afb42",
            "id": "IN-MAL-2026-007701",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-28T06:50:43.364912428Z"
        },
        {
            "source": "ghsa-malware",
            "modified_time": "2026-06-29T03:18:54Z",
            "sha256": "b97af817a9d363e1a9135df78b3907253177ab4a63b8f4d8e58c46d561478326",
            "id": "GHSA-3q5w-m6wr-5jp2",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-29T03:26:14.359798262Z"
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-clob-math

Package

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

Affected ranges

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

Affected versions

1.*
1.0.4

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"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "polymarket-clob-math-1.0.4.tgz",
            "hashes": {
                "sha512_sri": "sha512-2O7p2mYVIXT+6m3Nr78yDG6vaqziM9nvYbJyubGqD9YH5bLlfeF+t6PSwSIe4bR/MpRrC/RvV/XdqEXnb8PUbA==",
                "sha1": "9fafc53e695a23b353978ea3062709a843d7d089"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "scripts/install-check.cjs",
            "tlsh": "59a1459519a2727746b1ebb8c722901dfe2340233521c350f6de96952fb72a4c352dec",
            "sha256": "6802db59168709186a085f1bf6c162288ae0482d66a35816bda9f0704d0b709b"
        },
        {
            "path": "package.json",
            "tlsh": "3bf02837d9a04d3628b88f9d4e691544f5650b5f32b04d1bb0bba11c8fb2573045b73a",
            "sha256": "0cdf62aaac92cf392c03f92571566c2c59f321c01e8e815d853c5bd6257565f4"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-clob-math/MAL-2026-6556.json"