CVE-2026-126982: MongoDB C# Driver BSON type allow-list bypass

CVE-2026-126982 · Severity: high · CVSS 7.5 · Published 2026-11-13

The MongoDB C# Driver's BSON serialization library can be tricked into instantiating .NET types outside of an intended allow-list when deserializing polymorphic data. An attacker who can supply BSON or JSON data consumed by an application can instantiate arbitrary types and populate them with attacker-controlled values, potentially leading to code execution if suitable gadget types exist in the environment.

Technologies: MongoDB C Driver. Vendors: MongoDB.

Quick answers

Is CVE-2026-126982 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-126982 being exploited in the wild.
How severe is CVE-2026-126982?
High severity, with a CVSS score of 7.5, published 13 November 2026.
Which products and versions are affected?
MongoDB C Driver unknown.
Is there a fix for CVE-2026-126982?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-126982 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-126982?
Check whether you run MongoDB C Driver at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a type allow-list bypass in BSON deserialization that occurs when polymorphic data is deserialized into loosely typed members. An attacker can supply malicious BSON/JSON input to circumvent the type-restriction check, causing instantiation of unintended .NET types with attacker-supplied values. No special privileges are required beyond the ability to introduce data the application deserializes; exploitation may enable arbitrary code execution depending on available gadget types.

Affected products

  • MongoDB C# Driver unknown

Timeline

  • 2026-11-13: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.