Malicious code in js-array-tokens (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The js-array-tokens package (version 1.0.2) includes a malicious payload that triggers on module import. It reconstructs a URL from a character code array to hide the destination endpoint (https://access-token-delta.vercel.app/). The package fetches a JSON response from this endpoint and executes the 'token' field content using eval(), allowing arbitrary remote code execution within the Node.js environment. This technique is a clear example of a remote-loader malware pattern designed to evade detection by obfuscating the URL and performing import-time code execution.
Potential Impact
Any application importing js-array-tokens version 1.0.2 risks executing arbitrary code controlled by a remote attacker. This can lead to full compromise of the Node.js process, including data theft, system manipulation, or further malware deployment. The malicious behavior activates immediately upon module load, increasing the risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using js-array-tokens version 1.0.2 and remove it from their projects. Avoid importing this package until a trusted, patched version is released or the package is verified safe. Monitor for updates from the package maintainer or npm advisories for remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15555
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7d9acd9273b49e75aa6
Added to database: 08/29/2026, 15:16:41 UTC
Last enriched: 09/09/2026, 21:23:43 UTC
Last updated: 10/01/2026, 22:27:00 UTC
Views: 28
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.