CVE-2019-10758
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.
Severity
CRITICAL
CVSS v3
9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
84.726%
chance of exploitation in the next 30 days
higher than 99.7% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2021-12-10
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | MongoDB mongo-express Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | MongoDB / mongo-express |
| Date added | 2021-12-10 |
| Federal remediation due date | 2022-06-10 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-07 |
Timeline
- 2019-12-24Published by the CNA21:08 UTC
- 2019-12-30GitHub advisory published (GHSA-h47j-hc6x-h3qq)6 days after publication
- 2021-12-10Added to the CISA KEV catalog717 days after publication
- 2025-02-07CISA SSVC decision recorded1872 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2019-10758: mongo-express Remote Code Execution
GitHub advisory GHSA-h47j-hc6x-h3qq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm mongo-express | before 0.54.0 | 0.54.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| mongo-express_project mongo-express | before 0.54.0fixed in 0.54.0 | 0.54.0 |
References
- https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2019-10758'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2019-10758'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2019-10758'curl 'https://api.contrastcyber.com/cve_products/CVE-2019-10758'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2019-10758'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).