poly-custom-api (npm) · Malicious Code
Affects poly-custom-apiSource GCVE Database
Malicious package : remove poly-custom-api and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:15 UTC
Malicious package
Published to npm · OSV MAL-2026-12416
What to do
Remove poly-custom-api from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmpoly-custom-api | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The poly-custom-api npm package version 5.3.1 contains malicious code that fetches and executes remote code from an untrusted IP address. The package's default export constructs an HTTPS URL to a bare IP and evaluates the fetched response as code with full host privileges. This behavior allows arbitrary code execution in the Node.js process of any user invoking the function. The malicious payload is mutable, unauthenticated, and disguised using icon-related naming to evade detection.