Malicious Code Detected in mongodb-compass: A Critical Vulnerability

mongodb-compass Updated 01 Dec 2025

Summary

01/12/2025
CRITICAL
No i
Critical
Not published

MAL-2025-191518: Malicious code in mongodb-compass (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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

mongodb-compass is a graphical user interface for MongoDB, designed to simplify database management and data visualization. It allows users to interact with their MongoDB databases through a user-friendly interface, providing features such as query building, data exploration, and performance monitoring. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users.

Vulnerability Detail

The vulnerability originates from the discovery of malicious code within the mongodb-compass package. This code can potentially compromise user data, lead to unauthorized access, and exploit system resources. The malicious nature of this code raises serious concerns about the integrity and security of applications relying on this package, making it imperative for users to take immediate action.

How To Fix

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

npm uninstall mongodb-compass

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 measure, users can avoid using the mongodb-compass package until a secure version is confirmed. Alternatively, consider using other database management tools that do not exhibit this vulnerability.

Conclusion

The discovery of malicious code in the mongodb-compass package highlights the importance of maintaining vigilance regarding open-source software security. Users are strongly advised to update their packages promptly and consider alternative solutions until the issue is fully resolved.

See every vulnerability recorded for mongodb-compass →

Share this vulnerability

FAQ

mongodb-compass is a GUI tool for MongoDB that helps users manage their databases more effectively.

The malicious code was identified through an automated security assessment conducted by Amazon Inspector.

Using the compromised version can lead to data breaches, unauthorized access, and potential system exploitation.

Yes, users should update to the latest version of mongodb-compass to mitigate the risks associated with this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit 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 mongodb-compass

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