CVE-2026-6231

published 13 Apr 2026 · updated 13 Apr 2026

bson_validate may skip validation when processing certain inputs

4.3MediumCVSS 4.3EPSS 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 1.30.5 and C Driver 2.0.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBC Driver>=1.0 <1.30.5, >=2.0 <2.0.21.30.5, 2.0.2

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-6231 severity on Zeptric[![CVE-2026-6231](https://zeptric.io/badge/cve/CVE-2026-6231.svg)](https://zeptric.io/cve/CVE-2026-6231)