CVE-2026-126839

published 12 Nov 2026 · updated 17 Nov 2026

Deserialization allow-list bypass via anonymous-type misdetection in BSON object deserialization

4.2MediumCVSS 4.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in C Driver 3.14.0.

A deserialization type-restriction control in the BSON serialization component can be bypassed because the check used to recognize a class of compiler-generated types relies on an overly permissive heuristic rather than a precise identification. An unauthorized party able to supply BSON content that an application later deserializes into a loosely typed member can cause types outside the intended allow-list to be constructed and populated with unauthorized party-supplied values inside the consuming application. This can lead to unexpected object state and errors in downstream application logic. No elevated privileges beyond the ability to place unauthorized party-influenced content in the deserialization path are required.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBC Driver>=2.21.0 <3.14.03.14.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-126839 severity on Zeptric[![CVE-2026-126839](https://zeptric.io/badge/cve/CVE-2026-126839.svg)](https://zeptric.io/cve/CVE-2026-126839)