MAL-2026-12416

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/poly-custom-api/MAL-2026-12416.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12416
Published
2026-08-05T13:01:01Z
Modified
2026-08-05T13:35:45.342268443Z
Summary
Malicious code in poly-custom-api (npm)
Details

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

Source: amazon-inspector (a3263a9e2a986068fafa530a8e6862f9ba41cad05ecbd5b7b91752ca1c5af0c6)

The default export getPlugin in index.js constructs an HTTPS URL from split constants pointing at the bare IP 46.183.25.232:45000/icons/108, fetches the response, and passes the response field data.credits to new Function(...) with require, module, exports, process, Buffer, and global injected as parameters. Any caller invoking the exported function grants the remote endpoint arbitrary code execution in the Node.js process with full host privileges. The endpoint is disguised with icon/CDN vocabulary (iconDomain, font-awesome/svgs/brands, a 'bearrtoken' field literal 'logo') and an unused IconProvider map, while the package advertises itself as a 'custom API library' — the icon framing is cover for the fetch-and-eval path. The payload is mutable, unpinned, unauthenticated, and served over a bare-IP host unrelated to any legitimate publisher infrastructure.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "5.3.1"
            ],
            "sha256": "a3263a9e2a986068fafa530a8e6862f9ba41cad05ecbd5b7b91752ca1c5af0c6",
            "import_time": "2026-08-05T13:08:50.870521254Z",
            "id": "IN-MAL-2026-014848",
            "modified_time": "2026-08-05T13:01:01Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / poly-custom-api

Package

Affected ranges

Affected versions

5.*
5.3.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "poly-custom-api-5.3.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-RSR9waszWVq+MZd+I7SpD7Nl7L6rKVM8CLcLlEFXtKV+xAPt8oAbFca1z/EzyOvr86tGaRVXFTURXE/9vScfeA==",
                "sha1": "09dc2e523079cf687c0330e52558c97354e5abca"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "30c1616546fa31a36a67e4eef30f10027165e313365de971f48e42902fca568e5f24e8",
            "sha256": "ce2c680ca6b7355d73cbc131465fc6b2f2508f367b57ecb27a3b05e6e247213f",
            "path": "index.js"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/poly-custom-api/MAL-2026-12416.json"