Malicious code in tailwind-contact-forms (npm)
Description
The npm package tailwind-contact-forms version 0.5.12 contains malicious obfuscated code that executes upon import. It impersonates the legitimate Tailwind Labs package @tailwindcss/forms to trick developers into installing it. The malicious payload performs host reconnaissance by reading environment variables and host identifiers, and it contacts Ethereum RPC and block-explorer infrastructure endpoints. This behavior is unusual and unauthorized for a CSS/Tailwind plugin, indicating malicious intent.
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 tailwind-contact-forms npm package (version 0.5.12) includes a main entry file src/index.js that combines legitimate Tailwind CSS forms plugin code with an obfuscated payload. The obfuscation uses a rotating string array and decoder functions to hide its true functionality. The decoded payload collects host environment information such as 'hostname', 'Win64; x64', and 'process.env', and makes network requests to Ethereum-related RPC and block-explorer domains (e.g., h.drpc.org, pc.io/eth, stapi.io, ut.com/api, and Etherscan-style query parameters). Because the malicious code runs immediately on require(), any project installing this package will execute the payload. The package's manifest falsely claims the repository of the legitimate Tailwind Labs forms plugin to mislead users. There is no legitimate reason for a CSS plugin to perform such reconnaissance or network activity.
Potential Impact
Installing and importing tailwind-contact-forms version 0.5.12 results in execution of malicious code that collects environment information and communicates with external Ethereum-related infrastructure. This can lead to unauthorized data exposure and potential further compromise depending on the payload's capabilities. The package impersonates a trusted upstream to increase the likelihood of installation by developers, increasing risk of supply chain compromise.
Mitigation Recommendations
Users should avoid installing or using the tailwind-contact-forms package, especially version 0.5.12. Remove this package from any projects where it is present. Since no patch or official fix is available, the best mitigation is to uninstall and replace it with the legitimate @tailwindcss/forms package from Tailwind Labs. Monitor package sources carefully to avoid similarly named malicious packages. Patch status is not confirmed; check vendor advisories or npm security notices for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15925
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4e8acd9273b49b67668
Added to database: 09/04/2026, 14:25:44 UTC
Last enriched: 09/07/2026, 18:23:45 UTC
Last updated: 10/01/2026, 23:02:53 UTC
Views: 24
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.