CVE-2019-10758: Remote Code Execution in mongo-express toBSON
- Vendor
- Mongo-Express Project
CVE-2019-10758 is a remote code execution vulnerability in mongo-express versions before 0.54.0. Endpoints using the toBSON method misuse the vm dependency to execute commands in an unsafe environment, allowing attackers to execute code remotely. The vulnerability has been exploited in Sysrv-hello and Gitpaste-12 cryptomining campaigns.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits remote execution of attacker-controlled code on the system running mongo-express. Observed exploitation includes cryptomining malware campaigns that deploy miners and self-propagating malware. The vulnerability is included in CISA's Known Exploited Vulnerabilities catalog.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict network access to mongo-express so it is not reachable by untrusted users, especially from the public Internet. Limit access to trusted administrative networks, place the service behind strong authentication and network filtering, and disable or isolate exposed functionality that processes untrusted BSON-related input where feasible. Running the service with minimal OS and database privileges can reduce post-exploitation impact but does not eliminate the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade mongo-express to version 0.54.0 or later.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2019-10758 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Dec 10, 2021.
- Is there a public exploit for CVE-2019-10758?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2019-10758, the earliest disclosed Dec 26, 2019.
- Is there a patch for CVE-2019-10758?
- Upgrade mongo-express to version 0.54.0 or later.
- What products are affected by CVE-2019-10758?
- Mongo-Express Project Mongo-Express.
- How severe is CVE-2019-10758?
- CVE-2019-10758 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 84.7% (100th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.