What’s Vulnerable › Vulnerabilities
CVE-2026-6231: bson_validate may skip validation when processing certain inputs
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-13 · updated 2026-10-26
- Weakness: CWE-20
Description
The bson_validate function may return early on specific inputs and incorrectly report success. This behavior could result in skipping validation for BSON data, allowing malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. The issue may affect applications that rely on these functions to validate untrusted BSON data before further processing. This issue affects MongoDB C Driver versions prior to 1.30.5, MongoDB C Driver version 2.0.0 and MongoDB C Driver version 2.0.1
Affected products
- MongoDB C# Driver: before 1.30.5; from 2.0.0 before 2.0.2 — fixed in 1.30.5, 2.0.2
How to fix
Upgrade to a fixed version: MongoDB C# Driver 1.30.5, 2.0.2. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-6231 or the next vulnerability affects your stack