CVE-2026-6231

Severity CVSS v4.0:
MEDIUM
Type:
CWE-20 Input Validation
Publication date:
13/04/2026
Last modified:
06/05/2026

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:* 1.30.5 (excluding)
cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:* 2.0.0 (including) 2.0.2 (excluding)


References to Advisories, Solutions, and Tools