Malicious Code Detected in tailwindcss-forms Package - Security Alert
Summary
MAL-2025-191595: Malicious code in tailwindcss-forms (npm). Affects tailwindcss-forms versions 1.0.3. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The tailwindcss-forms package is an npm library designed to enhance form styling in Tailwind CSS applications. It provides utility classes that simplify the process of creating aesthetically pleasing forms. However, this package has been compromised, leading to potential security risks for developers using it in their projects.
Vulnerability Detail
The vulnerability in the tailwindcss-forms package arises from the introduction of malicious code in version 1.0.3. This code could potentially allow attackers to execute harmful actions within the user's environment, leading to data breaches or unauthorized access. The malicious code was identified by ReversingLabs, highlighting the importance of scrutinizing third-party packages for security flaws.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tailwindcss-forms
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, consider removing the tailwindcss-forms package from your project until a secure version is released. You can do this by running: npm uninstall tailwindcss-forms. Alternatively, you may explore other form styling libraries that do not have known vulnerabilities.
Conclusion
The tailwindcss-forms package has been compromised with malicious code, posing significant security risks. Developers are advised to update or remove the package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for vulnerabilities in real-time.
See every vulnerability recorded for tailwindcss-forms →
FAQ
tailwindcss-forms is an npm package that provides utility classes for styling forms in Tailwind CSS applications.
The malicious code was identified by ReversingLabs, which specializes in analyzing and reporting on security vulnerabilities in open-source packages.
The risks include potential data breaches, unauthorized access to user information, and execution of harmful actions within the application.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If immediate updates are not possible, consider removing the package or using alternative libraries until a secure version is available.