Description
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method. A misuse of the `vm` dependency to perform `exec` commands in a non-safe environment.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | mongo-express | All versions prior to version 0.54.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 3 repositories
-
masahiro331/CVE-2019-10758 ★ 112 · Dec 26, 2019
-
lp008/CVE-2019-10758 ★ 5 · Jan 5, 2020
CVE-2019-10758
-
CyberCTF/vulhub-mongo-express-cve-2019-10758 ★ 0 · Oct 8, 2026
Vulhub mongo-express/CVE-2019-10758: mongo-express Remote Code Execution (CVE-2019-10758), run with Isoloom
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- mongo-express Remote Code Execution http/cves/2019/CVE-2019-10758.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mongo-express | < 0.54.0 | 0.54.0 | GHSA-h47j-hc6x-h3qq |