{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.7.0"
                  },
                  {
                    "fixed": "1.49.15"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "f931679d78ccfbaeead6e3b788c29910aff34709"
            },
            {
              "fixed": "4cd3dc195957fcaaf46a35b9fd16cbe98afe2f3c"
            }
          ],
          "repo": "https://github.com/mongodb-js/compass",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mongodb",
    "cwe_ids": [
      "CWE-116"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113870.json"
  },
  "details": "MongoDB Compass improperly escapes certain BSON values when converting a stored view’s aggregation pipeline into editable source. When a user connects to a MongoDB deployment containing a specially crafted view and opens that view for editing, the values can cause arbitrary code to execute with the privileges of the user running Compass.",
  "id": "CVE-2026-113870",
  "modified": "2026-10-22T02:30:28.665903981Z",
  "published": "2026-10-21T18:04:30.607Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113870.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/mongodb-js/compass"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113870"
    },
    {
      "type": "WEB",
      "url": "https://www.mongodb.com/docs/compass/release-notes/#mongodb-compass-14915"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing"
}