MAL-2026-6712

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-risk-manager/MAL-2026-6712.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6712
Aliases
  • GHSA-jcx2-q527-7qcx
Published
2026-07-01T20:37:17Z
Modified
2026-08-05T07:21:23.074257690Z
Summary
Malicious code in polymarket-risk-manager (npm)
Details

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

Source: amazon-inspector (54bfddce038bb64117d6850bb2977f8cee17704212e12e6214fb495b9d4cee79)

On npm install, the package's postinstall script reads a config URL from package.json's homepage field (https://parket-server-help.vercel.app/config/psm-peer.json), downloads a tarball from the returned bundle URL, extracts it, runs npm install inside the extracted directory, and then require()s peer-math.js from the fetched bundle and invokes syncSession() from it. There is no version pin, hash check, or signature verification, and the destination domain (parket-server-help.vercel.app) is not Polymarket-owned despite the polymarket-prefixed package name and brand-adjacent host. The stated purpose of the package — Kelly stake math in a ~40-line kelly.js — does not require any network bundle. The postinstall code is framed as a 'peer sync'/'install check', accepts environment overrides (PSMPEERURL, PSMSYNCCONFIG, KELLYPEERCONFIG), and swallows errors as 'install check skipped' to suppress visibility. This is the canonical install-time dropper shape: arbitrary attacker-controlled JavaScript executes inside the installer's Node process during dependency installation.

Source: ghsa-malware (8d8f215c500de42921e7d9022bedb04a160d16bf595ab338a2bd6b79a384151b)

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": [
        {
            "import_time": "2026-07-01T21:04:19.992927956Z",
            "sha256": "54bfddce038bb64117d6850bb2977f8cee17704212e12e6214fb495b9d4cee79",
            "modified_time": "2026-07-01T20:37:17Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007884",
            "versions": [
                "3.5.2"
            ]
        },
        {
            "import_time": "2026-07-30T03:51:56.50009Z",
            "sha256": "8d8f215c500de42921e7d9022bedb04a160d16bf595ab338a2bd6b79a384151b",
            "modified_time": "2026-07-29T15:07:17Z",
            "source": "ghsa-malware",
            "id": "GHSA-jcx2-q527-7qcx",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-08-05T06:00:56.406110305Z",
            "sha256": "13821147aad821178674ef5f80d2805604a4c5bc47ec880411427dac3278c40d",
            "modified_time": "2026-08-05T05:53:01Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013231",
            "versions": [
                "3.2.0"
            ]
        },
        {
            "import_time": "2026-08-05T07:06:41.513750241Z",
            "sha256": "5e683f752d3571e5959ca2948f1493cf27d0d2df5ca0823c28465c9c03a991e4",
            "modified_time": "2026-08-05T06:06:59Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013325",
            "versions": [
                "3.3.0"
            ]
        },
        {
            "import_time": "2026-08-05T07:06:41.722141071Z",
            "sha256": "d0503897603eea087c0b2f928b969e0e92627192b406dc7a81a699b610eb910e",
            "modified_time": "2026-08-05T06:07:41Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013330",
            "versions": [
                "3.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-risk-manager

Package

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

Affected ranges

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

Affected versions

3.*
3.1.0
3.2.0
3.3.0
3.5.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-risk-manager/MAL-2026-6712.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "76abe2f68ddc2948f9a9acea1c8ea0d6420ca3d4315627a6b0b3ee4070a48e2d",
            "tlsh": "82a1459519a272774ab1ebb8c722901dfe6340233421c350f6de96952fb72a4c352dec",
            "path": "scripts/install-check.cjs"
        },
        {
            "sha256": "9a897ad312fcf839ebbd9fcbfc8507ef1ffa813d1b95b695f49b59f4544dfb9e",
            "tlsh": "6ff07837da508e3728b88e9d4e751a44f5610b4f22b04d0b71bb600c4f721a3085b73a",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "polymarket-risk-manager-3.5.2.tgz",
            "hashes": {
                "sha1": "781de61c2cd924d9ea14a464fb92a4f4a03901dc",
                "sha512_sri": "sha512-ulYPzuMvIso9LheSQBeSfpZlWM11yfeybsq5EmzKqIpJKmKxblAVam3VSVbAMxNtlchn/45XS5eVZulkmi5weg=="
            }
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "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",
        "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."
    }
]