Critical Malicious Code Vulnerability in tailwindcss-setfont Package
Summary
MAL-2025-192317: Malicious code in tailwindcss-setfont (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 tailwindcss-setfont package is an npm library designed to facilitate font management in Tailwind CSS projects. It allows developers to easily set and customize fonts in their applications. However, this package has been compromised, leading to severe security risks for any system that has it installed.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the tailwindcss-setfont package. This code can fully compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it contains embedded malicious code. The ramifications include complete control of the affected system by an outside entity, making it imperative for users to act swiftly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tailwindcss-setfont
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. The only recommended action is to uninstall the compromised package and secure any sensitive information.
Conclusion
The tailwindcss-setfont package has been compromised with malicious code, posing a significant risk to any system that has it installed. Users must take immediate action to uninstall the package and secure their sensitive information. Regular monitoring for vulnerabilities, such as through Vulert, can help prevent future issues.
See every vulnerability recorded for tailwindcss-setfont →
FAQ
You should immediately uninstall the package using the command npm uninstall tailwindcss-setfont and rotate any sensitive information stored on the affected 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, compromising sensitive data and potentially allowing attackers to take full control of your computer.
No, there is currently no patched version of the tailwindcss-setfont package available. The only solution is to uninstall the package.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, providing a convenient way to stay informed about potential threats.