Malicious Code Vulnerability in tailwind-css-keyframes: A Threat to Tailwind CSS Users
Summary
MAL-2026-18081: Malicious code in tailwind-css-keyframes (npm). Affects tailwind-css-keyframes versions 1.0.7. 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
tailwind-css-keyframes is a Tailwind CSS plugin designed to facilitate the integration of keyframe animations into Tailwind projects. It allows developers to easily implement animations using Tailwind's utility-first approach. However, this package has been compromised, making it a potential risk for users who rely on it for their animation needs.
Vulnerability Detail
The vulnerability arises from the inclusion of malicious code within the tailwind-css-keyframes package (version 1.0.7). This package is linked to a broader malicious campaign that exploits the npm ecosystem. Specifically, it requires a private scoped package, @jasperquinn/postcss-motion-helpers, which is not publicly accessible. This dependency contains the malicious payload that executes when the Tailwind configuration file is loaded, potentially compromising the user's development environment. The malicious code was introduced by the package author, kinsley_badu, as part of a series of deceptive packages published between July and October 2026.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tailwind-css-keyframes
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, users can avoid using the tailwind-css-keyframes package until a secure version is released. Alternatively, consider using other trusted animation libraries or implementing animations manually without relying on this compromised package.
Conclusion
The tailwind-css-keyframes package has been identified as containing malicious code that poses a risk to developers using Tailwind CSS. Users are urged to update their dependencies, remove any untrusted packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for tailwind-css-keyframes →
FAQ
tailwind-css-keyframes is a plugin for Tailwind CSS that allows developers to easily integrate keyframe animations into their projects.
The malicious code can execute when the Tailwind configuration file is loaded, potentially compromising your development environment and exposing sensitive information.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the tailwind-css-keyframes package, it is recommended to remove it and update your dependencies to ensure your project is secure.
Yes, there are twenty-six other packages published under various accounts that are part of this malicious campaign. It is advisable to review all dependencies in your project.