tailwindcss-form-ui@0.5.8
Malicious code in tailwindcss-form-ui (npm)
Analysis
The package tailwindcss-form-ui is an unscoped lookalike of the @tailwindcss/forms plugin. Its entry point, src/index.js (declared "main" in package.json and the module users are told to load from tailwind.config.js), begins with a hidden loader placed ahead of genuine upstream plugin code. The loader runs immediately on require: local spin/splitLane/peel routines un-shuffle string blocks (splitLane decodes "c^mejb^tro" into the property names require and module, which are then assigned onto the global object), the Function constructor is obtained via peel["constructor"] (bound to a variable named Forge), and roughly 15KB of hidden shuffled text stored in the file is decoded and executed as a function body with Forge('z', <decoded>), leaving the result in global.z = global.i + z. Everything from byte ~16,324 to the end of the file is a copy of the real @tailwindcss/forms plugin — imports of tailwindcss/plugin, defaultTheme, colors and mini-svg-data-uri, ending in module.exports=forms — together with copied README, CHANGELOG, issue templates and release workflows, so the package performs like the plugin it imitates while the encoded stage runs first. No lifecycle hook is declared; the payload triggers on require/import. The executed body is encoded and no plaintext endpoint, host, IP or path appears in the readable source of this version, so the only visible artifact of the second stage is the global.z write.
- analyzed by
- Leitwacht
- first seen
- Nov 3, 2026, 08:32 PM
- analyzed
- Nov 3, 2026, 08:51 PM
- weekly installs
- 207
Related advisories
- tailwindcss-form-ui@0.0.0-stage same package
- tailwindcss-form-ui@0.5.1 same package
- @ifasn/ms-doc-mcp@2.1.1
- @axo_cuy/baileyss@1.0.0
- gadgethumans-mcp@1.0.15
- shadowx-baileys@7.0.0-rc13-shadowx.2
- @finzzcloud/baileys@1.0.0
- character-ai-sdk@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.