Critical Malicious Code Vulnerability in docs-root Package

docs-root Updated 02 Oct 2025

Summary

21/06/2025
CRITICAL
No i
Critical
Not published

MAL-2025-5392: Malicious code in docs-root (npm). Affects docs-root versions >= 1.0.0. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The docs-root package is a Node.js library commonly used in web development for managing documentation and static site generation. It offers features such as customizable templates, easy integration with various content sources, and a user-friendly interface. However, recent findings have revealed that this package is susceptible to malicious code injection, which can compromise the security of applications relying on it.

Vulnerability Detail

The vulnerability identified in the docs-root package stems from its communication with a domain associated with malicious activity. This can lead to unauthorized data access, potential data breaches, and exploitation of the affected systems. The issue was introduced in version 1.0.0 and poses significant risks to users who have not updated to a secure version. Attackers can leverage this vulnerability to execute harmful scripts or steal sensitive information.

How To Fix

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

npm uninstall docs-root

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, users can remove the docs-root package from their project until a secure version is available. This can be done using the command: 'npm uninstall docs-root'. Additionally, consider using alternative packages that do not have this vulnerability.

Conclusion

The docs-root package has a critical vulnerability that can expose applications to malicious attacks. It is essential for developers to update their packages promptly and consider using tools like Vulert for ongoing monitoring of vulnerabilities. By taking these steps, you can help secure your applications against potential threats.

See every vulnerability recorded for docs-root →

Share this vulnerability

FAQ

The docs-root package is a Node.js library used for managing documentation and static site generation in web applications.

The vulnerability allows malicious code to be executed through the package, potentially leading to data breaches and unauthorized access.

You should update the docs-root package to the latest patched version immediately to mitigate the risk.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

How To Fix

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

npm uninstall docs-root

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