CVEs / CVE-2019-10758
CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability
- Known exploited in the CISA KEV catalog since 10 Dec 2021
- critical 9.9 CVSS 3.1 (NVD)
- EPSS 84.7% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2019-10758
Summary
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.
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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a mongo-express | All versions prior to version 0.54.0 | — |
| Product | Affected | Fixed in |
|---|---|---|
| mongo-express (npm) | before 0.54.0 | 0.54.0 |
Package versions from GHSA-h47j-hc6x-h3qq.
Exploitation
| In CISA KEV since | 10 Dec 2021 |
|---|---|
| Due date for US federal agencies | 10 Jun 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 9.9 criticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-94 |
References
- CVE-2019-10758 on NVD
- CVE-2019-10758 in the CISA KEV catalog
- CVE-2019-10758 on OSV
- https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215 Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.