{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-113870 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-113870 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-113870 is a high-severity vulnerability in MongoDB Compass, published on 21 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-113870 and fix it if it is affected.\n\nWhat it is: CVE-2026-113870 is a high-severity vulnerability in MongoDB Compass, published on 21 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-113870 in the wild and no public exploit code.\n\nAffected product: MongoDB Compass. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-113870/ (Markdown: https://insights.sbomify.com/CVE-2026-113870/index.md)","id":"CVE-2026-113870","markdown":"https://insights.sbomify.com/CVE-2026-113870/index.md","name":"CVE-2026-113870","record":{"aliases":["GHSA-pf8m-jx52-cwh3"],"analysis":null,"analysis_generated_by":null,"assigner":"mongodb","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-10-27","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-27T12:48:24Z","kind":"github_poc","ref":"https://github.com/mehmet-emir-eroglu/CVE-2026-113870","stars":0,"title":"Offline Python detector for CVE-2026-113870 exposure in MongoDB Compass inventories, with CSV/JSON input and auditable reports."}],"tier":"poc_unverified"},"has_fix":false,"headline":"Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing","id":"CVE-2026-113870","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"multer vulnerable to Denial of Service via a pending asynchronous fileFilter after request teardown","id":"CVE-2026-113872"},"packages":[],"prev":{"headline":"Use-after-free in S/MIME decryption during a security device password prompt","id":"CVE-2026-113869"},"products":["Compass"],"published":"2026-10-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-21","vendors":["MongoDB"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-113870/"}