Malicious code in tailwind-scrollbar-styles (npm)
Description
The tailwind-scrollbar-styles npm package version 4.0.3 contains malicious code embedded in its dist/index.js file. This code executes a base64-encoded payload that queries Ethereum RPC endpoints to retrieve a transaction from a hardcoded Ethereum address. It decodes part of the transaction to obtain a command-and-control (C2) server IP address, fetches and XOR-decodes commands from that server, and executes them via eval and a detached Node.js process. After execution, the malicious code removes itself from the file to evade detection and forensic analysis. This mechanism allows the attacker to dynamically rotate the C2 server by publishing new Ethereum transactions. No patch or remediation information is provided.
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 malicious code in tailwind-scrollbar-styles version 4.0.3 uses an embedded base64-encoded loader that runs at module load time. This loader queries multiple Ethereum RPC endpoints and Blockscout for the latest transaction from a specific Ethereum address. It extracts four bytes from the transaction's 'to' field, interprets them as an IPv4 address, and sends HTTP GET requests to that address on port 443 to retrieve further payloads. These payloads are XOR-decoded with fixed keys and executed via JavaScript eval and a detached Node.js process. After the first execution, the loader self-modifies the dist/index.js file to remove the malicious eval line, hindering post-incident analysis. The use of Ethereum transactions as a dynamic C2 resolver allows the attacker to change the C2 IP address at will by publishing new transactions from the controlling address.
Potential Impact
This malicious package can execute arbitrary code on any system that installs and runs tailwind-scrollbar-styles version 4.0.3. The dynamic retrieval and execution of commands from a remote C2 server controlled via Ethereum transactions enables stealthy and flexible attacker control. The self-erasing nature of the malicious code complicates detection and forensic investigation, increasing the risk of persistent compromise and undetected malicious activity.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using tailwind-scrollbar-styles version 4.0.3 and replace it with a clean, verified version or alternative package. Conduct thorough audits of dependencies before installation. Monitor for suspicious network activity related to Ethereum RPC endpoints or unexpected outbound connections to unknown IP addresses. Since the malicious code removes itself after execution, forensic analysis should be performed promptly if this version was installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15904
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4edacd9273b49b6781c
Added to database: 09/04/2026, 14:25:49 UTC
Last enriched: 09/07/2026, 17:09:30 UTC
Last updated: 10/04/2026, 04:32:54 UTC
Views: 45
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.