LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Dec 10, 2021
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Jun 10, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2019-10758 to its Known Exploited Vulnerabilities catalog on Dec 10, 2021, with a federal patch deadline of Jun 10, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.

CVE-2019-10758 is a remote code execution vulnerability in mongo-express, a web-based administrative interface for MongoDB. Versions before 0.54.0 are affected through endpoints that use the toBSON method. Successful exploitation can let an attacker run code in the context of the mongo-express process, which often has broad access to the underlying database and host. That makes the issue material for any environment where this admin UI is reachable, especially if it is exposed beyond tightly controlled internal networks.

IT and security teams should treat this as a high-priority patching item for any mongo-express deployments still in use. Confirm exact version status, exposure, and remediation steps against the vendor advisory rather than relying solely on secondary summaries.

How it works

The vulnerability allows remote code execution via endpoints that call the toBSON method. In broad terms for this class of flaw, untrusted input reaching a deserialization or conversion routine can be abused to influence how data is interpreted, ultimately leading to arbitrary code execution on the server hosting mongo-express. An attacker who can reach the vulnerable endpoints—whether because the interface is internet-facing, reachable from a compromised internal host, or insufficiently authenticated—may be able to trigger the condition and gain a foothold.

Public detail on the precise input format or exploit mechanics is limited in the provided facts; defenders should not assume a particular payload shape. The practical takeaway is that any reachable mongo-express instance older than the fixed release is a candidate for remote code execution until proven otherwise. Confirm the attack surface and fixed versions directly from the vendor advisory.

Am I affected? How to find it in your systems

mongo-express is typically deployed as a lightweight Node.js web application that administrators use to browse and manage MongoDB instances. It may run on developer workstations, jump hosts, container platforms, or dedicated admin servers, sometimes behind reverse proxies or in Kubernetes clusters.

If you cannot confirm the version quickly, treat internet-reachable or poorly segmented instances as suspect until upgraded.

How to remediate

Patch first. Apply the vendor update that addresses CVE-2019-10758 so that mongo-express is no longer before 0.54.0, following the vendor’s instructions exactly. CISA’s required action is to apply updates per vendor instructions; do not substitute unofficial builds.

Re-scan inventories after remediation to ensure no stray older containers or forgotten instances remain.

If you can't patch immediately

Implement compensating controls until the upgrade can be completed:

These measures reduce likelihood and impact but do not replace the vendor patch.

If your data may have been exposed

Actively exploited remote code execution flaws in database administration tools can lead to full database compromise, credential theft, and lateral movement. If you have evidence of exploitation or cannot rule it out, follow your incident response process: isolate affected hosts, preserve logs and memory where feasible, rotate credentials and secrets that the mongo-express process could access, and assess MongoDB data for unauthorized changes or exfiltration. Known ransomware use is not documented for this CVE in the provided facts. As a further hygiene step, you can run a free exposure scan of your email addresses against known breach data to see whether associated credentials have appeared in prior incidents.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedMongoDB · mongo-express
Added to CISA KEVDec 10, 2021
Federal patch deadlineJun 10, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities