Type Allow-list Bypass in MongoDB C# Driver Affecting Data Security
CVE-2026-126982
What is CVE-2026-126982?
A type allow-list bypass vulnerability in the BSON serialization library of the MongoDB C# Driver permits circumvention of type-restriction checks during the deserialization of polymorphic data into loosely typed members. This allows an unauthorized individual to supply or embed BSON/JSON data that the application subsequently deserializes. Such actions can lead to the instantiation of .NET types outside the authorized allow-list, populated with malicious values. If the application contains a suitable gadget type, this can result in arbitrary code execution, threatening the confidentiality, integrity, and availability of the application. Importantly, no special privileges are needed beyond the capacity to provide data the application processes.
Affected Version(s)
C# Driver 3.2.0 < 3.14.0