MAL-2026-10148

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polygon-gamma-apis/MAL-2026-10148.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10148
Aliases
  • GHSA-hg4h-mv37-7x88
Published
2026-07-10T16:12:23Z
Modified
2026-07-10T19:16:57.993214225Z
Summary
Malicious code in polygon-gamma-apis (npm)
Details

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

Source: amazon-inspector (a49bd3ddb3340e0ef3c76465b6e275d45ddc8eecdbd742747acde8588a2018b4)

polygon-gamma-apis@1.5.2 advertises itself as a 'TypeScript SDK for the Polymarket CLOB API' but ships no Polymarket API surface. The exported getPlugin function issues an HTTPS request to https://svganchordev.net/icons/111, reads the response's credits field, and passes it to new Function('require','module',...,data.credits) — executing attacker-controlled JavaScript inside the consumer's Node.js process with require, process, and Buffer available. Because the loader is passed require, subsequent stages can pull in native modules (dpapi, better-sqlite3, node-machine-id) to run a credential/wallet stealer. The URL is assembled piecewise (protocol + separator + domain + path) and surrounded by unused constants referencing legitimate CDNs (cloudflare, fastly, akamai, cloudfront, gcorelabs, cdnjs) and Font Awesome-style paths so the fetch reads as icon retrieval; an unused setDefaultModule referencing those CDNs is dead-code decoy. The package name and description impersonate the real @polymarket/clob-client to attract Polymarket integrators. Any consumer that imports the package and invokes the default export runs whatever JavaScript the operator of svganchordev.net serves at that moment.

Source: ghsa-malware (bd3cc3b2775e2ba28bb5fff5c7671fad59d10810e05e72c2f5c0c8b176c1ca8c)

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": [
        {
            "sha256": "bd3cc3b2775e2ba28bb5fff5c7671fad59d10810e05e72c2f5c0c8b176c1ca8c",
            "id": "GHSA-hg4h-mv37-7x88",
            "import_time": "2026-07-10T16:54:13.250904081Z",
            "modified_time": "2026-07-10T16:12:23Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "16bd60af8e6902e71779ea9a3b46217ab7d3e96b92cd7d676407113f856bec08",
            "id": "IN-MAL-2026-009694",
            "import_time": "2026-07-10T19:02:48.13985043Z",
            "modified_time": "2026-07-10T18:30:13Z",
            "versions": [
                "2.0.0"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.5.2"
            ],
            "id": "IN-MAL-2026-009696",
            "modified_time": "2026-07-10T18:30:33Z",
            "import_time": "2026-07-10T19:02:48.229139771Z",
            "sha256": "a49bd3ddb3340e0ef3c76465b6e275d45ddc8eecdbd742747acde8588a2018b4",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / polygon-gamma-apis

Package

Affected ranges

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

Affected versions

1.*
1.5.2
2.*
2.0.0

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "4afd517f6001f509dc71884eaf1c161ea728e75afd534c9904d02be1e23fd5ca",
            "tlsh": "c6c1616546fa31a36a67e4edf30f10027165e313375de971f48e42902fca568e5f24e8",
            "path": "index.js"
        },
        {
            "tlsh": "06f02210ce24deb314e6158a9839908ba161d94b8d50f80d378a87ac0f4e66f26fe76c",
            "sha256": "de10a879c73298040e45e75d163c4dc5f0c34439224a6217e869f9ec7ac20867",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "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."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polygon-gamma-apis/MAL-2026-10148.json"