# GHSA-7XFW-M762-WQW5: Malicious code in tailwindcss-hook-forms (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- tailwindcss-hook-forms (npm): 0.5.2

## Description

## Source: amazon-inspector (d504fed314f875b17a90d039af71b0798636e5030373e5d959871dc356bc7bef)
The package impersonates @tailwindcss/forms: name, repository (tailwindlabs/tailwindcss-forms), author (@tailwindcss), README, CHANGELOG, and HTML are copied from the legitimate plugin, with a demo link to tailwindcss-hook-forms.vercel.app. src/index.js prepends a hand-rolled string-permutation decoder (spin() with magic constants NX/SX, splitLane/peel wrappers) that resolves the Function constructor via peel.constructor and immediately invokes a function compiled from a ~15KB opaque, obfuscated string literal, passing the host require into it. This fires whenever any consumer imports the package, running attacker-controlled code in the installer's Node.js process with full access to require, process, filesystem, and network. The subsequent code replicates the public API of @tailwindcss/forms as cover. The obfuscator scheme does not exist in the legitimate plugin and its only purpose is to conceal the executable body from review.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/21ec1d1b1de6f4090eeedad8c58e9c49621376b4/osv/malicious/npm/tailwindcss-hook-forms/MAL-2026-19145.json))

## References

- https://github.com/ossf/malicious-packages/blob/21ec1d1b1de6f4090eeedad8c58e9c49621376b4/osv/malicious/npm/tailwindcss-hook-forms/MAL-2026-19145.json
- https://www.npmjs.com/package/tailwindcss-hook-forms/v/0.5.2
- https://github.com/advisories/GHSA-7xfw-m762-wqw5

Page: https://cve.now/GHSA-7XFW-M762-WQW5

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
