{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-10758","id":"CVE-2019-10758","title":"Remote Code Execution Vulnerability in NPM mongo-express","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.","descriptionLong":"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.","published":"2019-12-24T21:08:36.000Z","updated":"2026-10-24T10:30:16.676719303Z","reserved":"2019-04-03T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":9,"vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","rating":"critical","source":"NVD"}],"rating":"critical","products":["mongo-express"],"affectedProducts":[{"vendor":"n/a","product":"mongo-express","defaultStatus":null,"versions":[{"status":"affected","version":"All versions prior to version 0.54.0"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"mongo-express","purl":"pkg:npm/mongo-express","ranges":["<0.54.0"],"fixed":["0.54.0"],"advisory":"GHSA-h47j-hc6x-h3qq"}],"cwes":["CWE-94","CWE-78"],"aliases":["GHSA-h47j-hc6x-h3qq","SNYK-JS-MONGOEXPRESS-473215"],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-10758","tags":["government-resource","US Government Resource","web"]},{"url":"https://github.com/mongo-express/mongo-express/security/advisories/GHSA-h47j-hc6x-h3qq","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10758","tags":["advisory"]},{"url":"https://github.com/mongo-express/mongo-express/pull/522","tags":["web"]},{"url":"https://github.com/mongo-express/mongo-express/commit/7d365141deadbd38fa961cd835ce68eab5731494","tags":["web"]},{"url":"https://github.com/mongo-express/mongo-express/commit/d8c9bda46a204ecba1d35558452685cd0674e6f2","tags":["web"]},{"url":"https://github.com/mongo-express/mongo-express","tags":["package"]},{"url":"https://github.com/mongo-express/mongo-express/blob/ea02b364d43f179f191fc91fb9962efdb0843a8d/lib/bson.js#L60","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2021-12-10","kevDue":"2022-06-10","kevEntry":{"cveID":"CVE-2019-10758","vendorProject":"MongoDB","product":"mongo-express","vulnerabilityName":"MongoDB mongo-express Remote Code Execution Vulnerability","dateAdded":"2021-12-10","shortDescription":"mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-06-10","knownRansomwareCampaignUse":"Unknown","notes":"https://nvd.nist.gov/vuln/detail/CVE-2019-10758","cwes":[]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"total"},"epss":0.84726,"epssPercentile":0.99714,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-10758","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10758","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-10758","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h47j-hc6x-h3qq","ok":true,"note":"GHSA-h47j-hc6x-h3qq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2021-12-10"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-10758","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 85% with CVSS 9.9"],"attention":null}