CVE-2026-113870 Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing

High 8.6 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-113870?

CVE-2026-113870 is a high-severity vulnerability in MongoDB Compass, published on 21 Oct 2026.

Official 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.

Weakness: CWE-116

Which versions are affected by CVE-2026-113870?

How do I fix CVE-2026-113870?

No fix has been published for CVE-2026-113870 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-113870 being exploited?

There is no known exploitation of CVE-2026-113870 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-pf8m-jx52-cwh3.

Is CVE-2026-113870 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free