Critical Malicious Code Vulnerability in docusaurus-plugin-vanilla-extract
Summary
MAL-2025-190956: Malicious code in docusaurus-plugin-vanilla-extract (npm). Affects docusaurus-plugin-vanilla-extract versions 1.0.3. 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
docusaurus-plugin-vanilla-extract is an npm package designed to integrate vanilla-extract CSS with Docusaurus, a popular static site generator. It allows developers to write type-safe styles and manage them effectively within their Docusaurus projects. However, this package has been identified to contain malicious code, posing significant security risks to users.
Vulnerability Detail
The vulnerability originates from the presence of malicious code within the docusaurus-plugin-vanilla-extract package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. Users are advised to treat any system with this package as fully compromised, as the malicious code may persist even after the package is removed.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall docusaurus-plugin-vanilla-extract
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 best course of action is to remove the package entirely and secure the system.
Conclusion
The discovery of malicious code in the docusaurus-plugin-vanilla-extract package poses a serious threat to users. Immediate action is required to remove the package and secure any compromised systems. Utilizing tools like Vulert can help in proactively managing and monitoring open-source vulnerabilities.
See every vulnerability recorded for docusaurus-plugin-vanilla-extract →
FAQ
Immediately remove the package and rotate any sensitive information stored on your system.
You can use Vulert to monitor and alert for vulnerabilities in your application. Visit Vulert Scanner to check your package-lock.json for vulnerabilities without any signup.
Keeping this package installed can lead to unauthorized access to your system, exposing sensitive data and potentially allowing attackers to take control of your environment.
Currently, there is no patched version available. The only solution is to remove the package.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.