mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.
In short
CVE-2019-10758 (MongoDB mongo-express Remote Code Execution) has a CVSS 3.1 base score of 9.9, rated critical. CISA added it to the Known Exploited Vulnerabilities catalog on 10 Dec 2021. Fixed in Mongo-express 0.54.0 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HAffected products
- Mongo-express< 0.54.0
Remediation
Fixed in- Mongo-express≥ 0.54.0
References
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
