CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability
CVE-2019-10758 is a critical-severity flaw (CVSS 9.9) affecting mongo-express, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.9 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 84.7% (top 1%) |
| CISA exploited list | Yes, fix due 2022-06-10 |
| Weakness | CWE-94 |
| Published | 2019-12-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: masahiro331/CVE-2019-10758 (112 stars)
- GitHub PoC: lp008/CVE-2019-10758 (5 stars)
- GitHub PoC: CyberCTF/vulhub-mongo-express-cve-2019-10758 (0 stars)
- Write-up: snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215
- Nuclei scan template: mongo-express Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2019-10758?
mongo-express: upgrade to 0.54.0. Exact commands for each OS are on this page.
Is CVE-2019-10758 being exploited?
Yes. CVE-2019-10758 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2019-10758 affect?
CVE-2019-10758 affects mongo-express. Severity is critical (CVSS 9.9). 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.
How urgent is CVE-2019-10758?
Priority 90/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference
Software pages
Related CVEs
- CVE-2023-52555 MEDIUM 6.1 DOWNGRADE In mongo-express 1.0.2, /admin allows CSRF, as demonstrated by deletion of a Collection.
- CVE-2021-23372 MEDIUM 4.4 MITIGATE All versions of package mongo-express are vulnerable to Denial of Service (DoS) when exporting an empty collec
- CVE-2021-21422 HIGH 8.1 UPGRADE DOWNGRADE mongo-express is a web-based MongoDB admin interface, written with Node.js and express
- CVE-2020-24391 CRITICAL 9.8 UPGRADE mongo-express before 1.0.0 offers support for certain advanced syntax but implements this in an unsafe way