Critical Malicious Code Vulnerability in tailwind-logic Package
Summary
MAL-2025-192642: Malicious code in tailwind-logic (npm). Affected versions are not published. 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 tailwind-logic package is an npm library designed to facilitate the integration of Tailwind CSS with logic-based functionalities. It allows developers to create dynamic styles based on application logic. However, this package has been compromised, embedding malicious code that poses significant security risks to systems using it.
Vulnerability Detail
The vulnerability originates from the tailwind-logic package, which has been identified as containing malicious code. Any system with this package installed is considered fully compromised, allowing unauthorized access to sensitive information such as secrets and keys. The malicious code can lead to severe ramifications, including data breaches and system control by external entities. Users are advised to treat any system running this package as compromised and take immediate action to secure their data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tailwind-logic
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
There are no effective workarounds for this vulnerability other than removing the package and securing your system. Ensure that all sensitive data is rotated and that the system is monitored for any unauthorized access.
Conclusion
The tailwind-logic package has been compromised with malicious code, posing a significant security risk to any system using it. Immediate action is required to remove the package and secure sensitive information. Regular monitoring for vulnerabilities using tools like Vulert is recommended to maintain security.
See every vulnerability recorded for tailwind-logic →
FAQ
Immediately remove the tailwind-logic package and rotate any sensitive information stored on your system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to your system, data breaches, and potential loss of sensitive information.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, providing an easy way to stay informed about potential risks.