MAL-2026-6713

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-toolkit/MAL-2026-6713.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6713
Aliases
  • GHSA-w7x3-5xp7-6pw8
Published
2026-07-01T20:37:33Z
Modified
2026-08-06T01:21:12.162203643Z
Summary
Malicious code in polymarket-toolkit (npm)
Details

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

Source: amazon-inspector (65aa9243f492d222e1bb036c8ed55fb17268bd987a63ad2ea2aa1b28e44defc3)

Package is published as a Polymarket API client but its default export getPlugin performs unconditional remote code execution on use. On invocation it issues an HTTPS request to https://svganchordev.net/icons/109, takes the data.credits field from the JSON response, and passes it to new Function('require','module',...,'Promise', data.credits) with a context object exposing require, process, Buffer, and related Node primitives, then immediately invokes it. The fetched JavaScript runs with full Node privileges on the installer's machine. The surrounding code is dressed as an icon/CDN helper (variable names IconProvider, iconDomain, a map of cloudflare/fastly/akamai hosts, font-awesome path literals), but those strings are unused decoys; the live request path resolves to the hardcoded svganchordev.net host. Declared dependencies (@primno/dpapi for Windows DPAPI, better-sqlite3, node-machine-id) are consistent with browser-credential and machine-fingerprint extraction and are unrelated to a Polymarket API SDK. Package keywords (react, helper, svg) also do not match the advertised purpose. The shape is a brand-impersonating dropper targeting developers searching for a Polymarket toolkit.

Source: ghsa-malware (a4bf97d5bf46ca471f898d6b4d465215c327dcf42f4839929970de1556ec55de)

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:20.064393253Z",
            "sha256": "65aa9243f492d222e1bb036c8ed55fb17268bd987a63ad2ea2aa1b28e44defc3",
            "modified_time": "2026-07-01T20:37:33Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007886",
            "versions": [
                "1.4.9"
            ]
        },
        {
            "import_time": "2026-08-06T00:58:53.467198543Z",
            "sha256": "a4bf97d5bf46ca471f898d6b4d465215c327dcf42f4839929970de1556ec55de",
            "modified_time": "2026-08-05T13:20:16Z",
            "source": "ghsa-malware",
            "id": "GHSA-w7x3-5xp7-6pw8",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-toolkit

Package

Affected ranges

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

Affected versions

1.*
1.4.9

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-toolkit/MAL-2026-6713.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "a29f4fd5a378767f105b022fac069d4d2a16744e9866865b5d8df964b2752cbc",
            "tlsh": "59c1616546fa31a36a67e4edf30f100271a5e3133759e971f48e42902fca568e5f24e8",
            "path": "index.js"
        },
        {
            "sha256": "dd8fec230eeeb2d08ffb1abdb693f21e15b89253543f5a7f12a6d8c700cba8f3",
            "tlsh": "57f04414ca31deb309e6159a9c39819aa161c91f5e50f80d338a879d0f4e87f62fe62c",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "polymarket-toolkit-1.4.9.tgz",
            "hashes": {
                "sha512_sri": "sha512-cK9tCp1SSXDfmf67G/ts/e2WiUqbrI/m49lmgIrkNFeBk3BAKfKXMScdytJKJbUrrb9qvEeJ40SNsxTY8W9wJw==",
                "sha1": "d4f0614fa86d8f650ac372841af32fc51b28b540"
            }
        }
    ]
}
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"
    }
]