Remote code executionin MongoDB mongo-express.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 10 Dec 2021.
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.
- Upgrade mongo-express (npm) to 0.54.0 or later.
- CISA requires US federal agencies to fix it by 10 Jun 2022.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 3 Apr 2019CVE ID reserved by snyk.
- 24 Dec 2019Published in the CVE List.
- 26 Dec 2019First public proof of concept on GitHub.
- 10 Dec 2021Added to CISA's Known Exploited Vulnerabilities list.
- 21 Oct 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Code injection
- snyk.io x_refsource_MISC
- www.cisa.gov government-resource
Patchminder. CVE-2019-10758: Remote code execution in MongoDB mongo-express. https://patchminder.com/cve/cve-2019-10758/ (accessed 5 December 2026).