Malicious Code Injection in animate-twcss-bridge: A Critical Vulnerability
Summary
MAL-2026-18066: Malicious code in animate-twcss-bridge (npm). Affects animate-twcss-bridge versions 2.0.6. 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
animate-twcss-bridge is a Tailwind CSS plugin designed to integrate Animate.css into Tailwind projects. It allows developers to easily incorporate animations into their web applications, enhancing user experience. However, this package has been compromised, exposing users to potential security risks due to malicious code embedded in a private dependency.
Vulnerability Detail
The vulnerability originates from the animate-twcss-bridge package version 2.0.6, which was published by a malicious actor. It requires a private scoped package, @aaron205whitmore/postcss-animate-utils, that is not accessible on the public npm registry. This dependency contains malicious code that executes when the Tailwind configuration file (tailwind.config.js) loads the plugin, potentially allowing unauthorized actions or data breaches. The malicious code is hidden within a private dependency, making it difficult for users to detect.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall animate-twcss-bridge
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, you can avoid using the animate-twcss-bridge package altogether. Instead, consider using alternative animation libraries or manually integrating Animate.css into your project without relying on this compromised plugin.
Conclusion
The animate-twcss-bridge package has been compromised, posing significant security risks to users. It is crucial to update or remove the package to safeguard your applications. Utilizing tools like Vulert can help monitor and alert you to such vulnerabilities in real-time.
See every vulnerability recorded for animate-twcss-bridge →
FAQ
animate-twcss-bridge is a Tailwind CSS plugin that allows developers to integrate Animate.css animations into their Tailwind projects.
The vulnerability can lead to the execution of malicious code, potentially compromising your application's security and exposing sensitive data.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you cannot update the package, it is advisable to remove it from your project and look for alternative solutions until a secure version is released.
The vulnerability was identified by pkgwarden, a security research entity focused on detecting malicious packages in open-source ecosystems.