Quick answers
- Is CVE-2019-10758 exploited in the wild?
- Yes. CVE-2019-10758 is known to be exploited in the wild, first recorded on 10 December 2021. Treat it as urgent.
- How severe is CVE-2019-10758?
- Critical severity, with a CVSS score of 3.1, published 30 December 2019.
- Which products and versions are affected?
- mongo-express (npm) SEMVER:introduced=0,fixed=0.54.0.
- Is there a fix for CVE-2019-10758?
- Yes. mongo-express (npm): upgrade to 0.54.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-10758 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2019-10758?
- Check whether you run MongoDB Mongo-Express or mongo-express (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- mongo-express (npm): upgrade to 0.54.0 or later
npm install mongo-express@0.54.0
Technical details
The vulnerability is a code injection flaw (CWE-94) in the index creation functionality of mongo-express. The vulnerable component uses unsafe JavaScript evaluation (eval-like behavior) to process user-supplied input in the "create index" field without proper sanitization. An authenticated user can inject arbitrary JavaScript code that executes in the context of the Node.js process, allowing them to invoke system commands via child_process module. The attack requires authentication to the mongo-express interface but no additional user interaction. The patch was released in version 0.54.0, which implements proper input validation and removes unsafe evaluation patterns.
Affected products
- mongo-express mongo-express all versions prior to 0.54.0
Identifiers
- CVE-2019-10758
- GHSA-h47j-hc6x-h3qq
Timeline
- 2019-12-30: disclosed
- 2019-12-30: patched: Version 0.54.0 released
- 2019-12-24: exploited: Exploited in the wild per CISA KEV
- kev added: Listed in CISA Known Exploited Vulnerabilities catalog