CVE-2026-113870

Source
https://cve.org/CVERecord?id=CVE-2026-113870
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113870.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-113870
Published
2026-10-21T18:04:30Z
Modified
2026-10-22T02:49:10Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing
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.

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"
}
References

Affected packages

Git / github.com/mongodb-js/compass

Affected ranges

Type
GIT
Repo
https://github.com/mongodb-js/compass
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.7.0"
                },
                {
                    "fixed":  "1.49.15"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113870.json"