OpenSSF/OSV advisory MAL-2026-15556 confirms this npm version as malicious. index.js runs getToken() at module load time. The destination URL is reconstructed from a numeric char-code array via String.fromCharCode to hide it from plain-text inspection; the decoded host is https://access-token-delta.vercel.app/...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in js-tokens-array (npm)
Details
index.js runs getToken() at module load time. The destination URL is reconstructed from a numeric char-code array via String.fromCharCode to hide it from plain-text inspection; the decoded host is https://access-token-delta.vercel.app/. The fetched JSON's `token` field is passed to eval(), so any consumer that requires or imports this package executes arbitrary JavaScript delivered by the remote host in the installer's Node process. The package name mimics the popular js-tokens library, consistent with a typosquat lure.
Decision reason
OpenSSF Malicious Packages via OSV confirms js-tokens-array@1.0.0 as malicious (MAL-2026-15556): Malicious code in js-tokens-array (npm)