CVE-2019-10758: MongoDB mongo-express Remote Code Execution Vulnerability

Published Dec 24, 2019
·
Updated

Impact

Remote code execution on the host machine by any authenticated user.

Proof Of Concept

Launching mongo-express on a Mac, pasting the following into the "create index" field will pop open the Mac calculator:

javascript this.constructor.constructor("return process")().mainModule.require('childprocess').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')

Patches Users should upgrade to version 0.54.0

Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading?

For more information If you have any questions or comments about this advisory: Open an issue in example link to repo Email us at example email address

Thanks

@JLLeitschuh for finding and reporting this vulnerability

This vulnerability has been exploited in the wild.

Other sources

mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the toBSON method.

CISA

Affected Software

3 affected componentsFixes available
npm/mongo-express<0.54.0
0.54.0
Mongo-express Project Mongo-express Node.js<0.54.0
MongoDB mongo-express

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/mongo-express to a version that resolves this vulnerability.

    Fixed in 0.54.0
  2. Upgrade

    Upgrade mongo-express to a version that resolves this vulnerability.

    Fixed in 0.54.0

Event History

Dec 24, 2019
CVE Published
via MITRE·09:08 PM
Data Sourced
via MITRE·09:08 PM
DescriptionWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeaknessAffected Software
Dec 30, 2019
Advisory Published
via GitHub·07:30 PM
Data Sourced
via GitHub·07:30 PM
DescriptionSeverityWeaknessAffected Software
Dec 10, 2021
Known Exploited
via CISA·12:00 AM
Dec 24, 2025
News Published
via BleepingComputer·02:18 PM
News Published
via BleepingComputer·03:22 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2019-10758?

CVE-2019-10758 is a vulnerability in MongoDB mongo-express that allows for remote code execution on the host machine by any authenticated user.

2

How severe is CVE-2019-10758?

CVE-2019-10758 has a severity rating of 9.9 (Critical).

3

How can I fix CVE-2019-10758 vulnerability?

To fix the CVE-2019-10758 vulnerability, update mongo-express to version 0.54.0 or later.

4

What software is affected by CVE-2019-10758?

The vulnerability affects MongoDB mongo-express version up to and excluding 0.54.0.

5

Where can I find more information about CVE-2019-10758?

You can find more information about CVE-2019-10758 at the following references: [Reference 1](https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq), [Reference 2](https://github.com/mongo-express/mongo-express/pull/522), [Reference 3](https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203