Advisory

GHSA-h47j-hc6x-h3qq

Also known as: CVE-2019-10758, SNYK-JS-MONGOEXPRESS-473215

Summary

Remote Code Execution Vulnerability in NPM mongo-express

Details

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:

Thanks

@JLLeitschuh for finding and reporting this vulnerability

This vulnerability has been exploited in the wild.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-12-30 19:30 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

mongo-express

npm · All systems

Affected

  • introduced 0, fixed 0.54.0 (semver)

Fixed versions

0.54.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences