Critical Malicious Code Vulnerability in npm-doc-build Package

npm-doc-build Updated 13 Mar 2026

Summary

12/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1360: Malicious code in npm-doc-build (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The npm-doc-build 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, making it easier to maintain and share project documentation. However, this package has been identified as containing malicious code, posing significant security risks to any system where it is installed.

Vulnerability Detail

The vulnerability originates from the inclusion of malicious code within the npm-doc-build package. This code can compromise the entire system, allowing unauthorized access to sensitive information such as secrets and keys. Once installed, the package grants full control to an external entity, making it imperative for users to consider their systems fully compromised. The malicious nature of this code is classified under CWE-506, indicating that it contains embedded malicious code.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall npm-doc-build

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 other than removing the package and securing your system. It is essential to monitor your environment for any signs of compromise.

Conclusion

The npm-doc-build package has been identified as containing malicious code that compromises system security. Immediate action is required to uninstall the package and secure any sensitive information. Regular monitoring and security practices are essential to prevent future vulnerabilities.

See every vulnerability recorded for npm-doc-build →

Share this vulnerability

FAQ

You should immediately uninstall the npm-doc-build package and rotate any sensitive information stored on your system.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

Keeping this package installed poses significant risks, including unauthorized access to sensitive data and potential system compromise.

If your system has been compromised, it is advisable to perform a thorough security audit, remove the malicious package, and restore your system from a secure backup.

While removing the package is essential, it does not guarantee complete security. A full security assessment is recommended to ensure no other vulnerabilities exist.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall npm-doc-build

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback