Critical Malicious Code Vulnerability in npm-doc-builder Package
Summary
MAL-2026-1132: Malicious code in npm-doc-builder (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 npm-doc-builder package is a tool used in the Node.js ecosystem for generating documentation from source code. It is designed to streamline the documentation process for developers by automating the creation of documentation files. However, this package has been found to contain malicious code that compromises the security of any system it is installed on.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the npm-doc-builder package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The implications of this vulnerability are severe, as it can lead to data breaches and unauthorized control over affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall npm-doc-builder
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 to mitigate the risks posed by this vulnerability other than removing the package and securing your system.
Conclusion
The npm-doc-builder package has been identified as containing malicious code that poses a significant security risk. Immediate action is required to remove the package and secure any compromised systems. Users are encouraged to utilize tools like Vulert for ongoing monitoring of vulnerabilities in their software.
See every vulnerability recorded for npm-doc-builder →
FAQ
You should uninstall the npm-doc-builder package immediately and rotate any sensitive information stored on the affected system.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
No, there is currently no patched version available for the npm-doc-builder package. The only solution is to uninstall it.
Failing to remove the package can lead to unauthorized access to your system, data breaches, and potential control by malicious actors.
It is highly recommended to avoid using npm-doc-builder due to its malicious nature. Consider looking for alternative documentation generation tools.