Skip to content
OpenAdvisories
Critical · 9.9 Known exploited Scanner template Public exploit CVE-2019-10758 EUVD-2019-0791GHSA-h47j-hc6x-h3qqSNYK-JS-MONGOEXPRESS-473215

Remote Code Execution Vulnerability in NPM mongo-express

Published Dec 24, 2019 · Updated Oct 21, 2025 · Assigned by snyk

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 products

VendorProductAffectedFixed
— mongo-express All versions prior to version 0.54.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm mongo-express < 0.54.0 0.54.0 GHSA-h47j-hc6x-h3qq

References