js-array-tokens (npm) · Malicious Code
Affects js-array-tokensSource GCVE Database
Malicious package : remove js-array-tokens and rotate any secrets on hosts that installed it.
Data as of 9 Sep 2026, 21:23 UTC
Malicious package
Published to npm · OSV MAL-2026-15555
What to do
Remove js-array-tokens 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 |
|---|---|---|
| npmjs-array-tokens | 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 js-array-tokens npm package version 1.0.2 contains malicious code that, upon module load, reconstructs a URL from an obfuscated character code array and fetches a JSON response from that URL. The package then passes the 'token' field from the response directly to eval(), executing arbitrary code within the Node.js process. This remote-loader pattern is concealed by obfuscation and has no legitimate use.