CVE-2026-6231

bson_validate may skip validation when processing certain inputs

HIGH
7.5
CVSS Score
Published: April 13, 2026 at 03:31 PM UTC
Updated: October 26, 2026 at 10:10 PM UTC
1 product affected across 1 vendorC++ Driver

Using C Driver by MongoDB Inc.?

Get instant alerts when new vulnerabilities affect C Driver - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.30.52.0.0 ≤ v < 2.0.21.02.0
Affected range stops below 1.30.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.0.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

Issue TrackingPatch
Source: cverecord
https://jira.mongodb.org/browse/CDRIVER-6017

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-20NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card