Malicious Code Detected in docusaurus-theme Package - Security Alert
Summary
MAL-2025-6714: Malicious code in docusaurus-theme (npm). Affects docusaurus-theme versions >= 0.2.0. 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 docusaurus-theme package is a popular npm package used for theming Docusaurus sites, providing developers with customizable options to enhance the visual appearance of their documentation. However, this package has been found to communicate with a domain associated with malicious activity, raising significant security concerns for users relying on it.
Vulnerability Detail
The vulnerability originates from the docusaurus-theme package version 0.2.0 and later, which includes malicious code that connects to a domain known for malicious activities. This could potentially lead to unauthorized access, data breaches, or other harmful consequences for applications utilizing this package. Users should be aware that the presence of such code can compromise the integrity and security of their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall docusaurus-theme
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, consider removing the docusaurus-theme package from your project until a secure version is released. You can do this by executing: npm uninstall docusaurus-theme. Alternatively, you may explore other theming options that do not pose security risks.
Conclusion
The docusaurus-theme package has been identified as having a serious vulnerability due to its communication with a malicious domain. Users are strongly encouraged to update the package or remove it from their projects to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities effectively.
See every vulnerability recorded for docusaurus-theme →
FAQ
The docusaurus-theme package is an npm package used for theming Docusaurus documentation sites, allowing developers to customize the look and feel of their documentation.
The package has been found to communicate with a domain linked to malicious activities, which could lead to security breaches or unauthorized access to sensitive data.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can provide real-time alerts without requiring code access. Visit Vulert Scanner to check your application.
Yes, it is advisable to update the docusaurus-theme package to the latest patched version to mitigate the risks associated with this vulnerability.
If immediate updates are not possible, consider removing the docusaurus-theme package or using alternative theming solutions until a secure version is available.