Elevated
MongoDB C# Driver type allow-list bypass allows code execution
CVE-2026-126982
C# programs using the MongoDB driver can be hacked.
- CVE
- CVE-2026-126982 (opens in a new tab)
- Score
- CVSS 7.5
- First seen
7.5
Products
Mitigation
Update to 3.14.0 or later.
Summary
A type allow-list check in the BSON library of the MongoDB C# Driver can be bypassed. If an outside party can plant data the application reads, code can run in the application when a suitable type is present. Versions 3.2.0 up to but not including 3.14.0 are affected.
Affected when
- Application deserializes polymorphic BSON/JSON data
- An outside party can supply or plant that data
- A suitable type is present in the application
2 other Incidents of this product in the last 30 days
Incidents by product: MongoDB C# Driver
Other recent Incidents of MongoDB C# Driver
Read the write-up · jira.mongodb.org (opens in a new tab)
- Write-up: jira.mongodb.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)