tailwind-contact-forms@0.5.8
Malicious code in tailwind-contact-forms (npm)
Analysis
tailwind-contact-forms@0.5.8 impersonates the Tailwind CSS forms plugin (same description, repository URL, MIT license and file layout as tailwindlabs/tailwindcss-forms) but ships a different main module: src/index.js is a single 59 KB line that begins eval(atob("Z2xvYmFsLmkgPSAnQTEwLSgqLSopJzt…")), decoding to an obfuscated payload with a _0x string-array dictionary, a "A10-(*-*)" marker, and inflate/GET helpers. The package declares no lifecycle hook — the payload runs when the module is required. On load it resolves Ethereum mainnet over public JSON-RPC endpoints (1rpc[.]io/eth via eth_blockNumber, eth_getBlockByNumber and eth_getTransactionCount; eth[.]drpc[.]org, ethereum-rpc[.]publicnode[.]com and eth-mainnet[.]public[.]blastapi[.]io via eth_getBlockByNumber and eth_getTransactionCount for address 0x1eef0849eda15d87f64e51c73c8442cf3c8bcef3), reads that address's transaction history from eth[.]blockscout[.]com (/api?module=account&action=txlist&address=0x1eef0849eda15d87f64e51c73c8442cf3c8bcef3&startblock=0&endblock=99999999&sort=desc&filterby=from), and retrieves remote configuration at /0x/cls and /0x/ls with a Chrome 131 user-agent and an "Sec-V: A10-(*-*)" header. The RPC hostnames appear nowhere in plaintext; they are stored inside the obfuscator's encoded string array, so the package reads as an ordinary Tailwind plugin until executed. A styling plugin has no reason to query a blockchain or fetch account-addressed configuration at import time. The same payload, endpoints and address are shipped by tailwindcss-contact-form@0.5.5 and tailwindcss-form-utils@0.5.9.
- analyzed by
- Leitwacht
- first seen
- Nov 3, 2026, 09:35 PM
- analyzed
- Nov 3, 2026, 09:51 PM
- weekly installs
- 308
Related advisories
- tailwind-contact-forms@0.0.0-stage same package
- tailwind-contact-forms@0.5.9 same package
- tailwind-contact-forms@0.5.12 same package
- @atedone/workspace-context@0.0.24
- @atedone/workspace-context@0.0.12
- ai-persona-sdk@1.0.0
- character-ai-sdk@1.0.1
- mock-datas-lib@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.