Malicious Code Injection in tailwindcss-keyframe-kit: A Security Threat
Summary
MAL-2026-18088: Malicious code in tailwindcss-keyframe-kit (npm). Affects tailwindcss-keyframe-kit versions 3.0.0 – 3.0.2. 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
tailwindcss-keyframe-kit is a Tailwind CSS plugin designed to facilitate the integration of animations into web applications. It allows developers to easily implement keyframe animations using Tailwind's utility-first approach. 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 versions 3.0.0 to 3.0.2 of tailwindcss-keyframe-kit, which includes a malicious dependency on a private scoped package, @aaron205whitmore/postcss-animate-utils. This package is not publicly accessible and requires an npm token for resolution. When the plugin is loaded in the tailwind.config.js file, the malicious code executes, potentially compromising the application. The threat is exacerbated by the fact that 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 tailwindcss-keyframe-kit
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 measure, avoid using the tailwindcss-keyframe-kit package until a secure version is released. You can also manually inspect your package-lock.json file for any dependencies that may be linked to this vulnerability.
Conclusion
The tailwindcss-keyframe-kit package has been compromised, leading to a significant security vulnerability. Users are advised to update to the latest version to protect their applications from potential threats. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.
See every vulnerability recorded for tailwindcss-keyframe-kit →
FAQ
tailwindcss-keyframe-kit is a plugin for Tailwind CSS that allows developers to easily implement animations in their web applications.
The vulnerability allows malicious code to execute when the plugin is loaded, potentially compromising the security of your application.
You should update to the latest version of tailwindcss-keyframe-kit as soon as possible to mitigate the risk.
You can use Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access. Visit https://vulert.com for more information.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.