CVE-2026-6231: bson_validate may skip validation when processing certain inputs

Published Apr 13, 2026
·
Updated

The bsonvalidate 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 Software

3 affected components
MongoDB MongoDB C driver<1.30.5, =2.0.0, =2.0.1
MongoDB C Driver Mongodb<1.30.5
MongoDB C Driver Mongodb>=2.0.0<2.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MongoDB C Driver to a version that resolves this vulnerability.

    Fixed in 1.30.5

Event History

Apr 13, 2026
CVE Published
via MITRE·03:31 PM
Data Sourced
via MITRE·03:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6231?

CVE-2026-6231 has a high severity rating due to its potential to allow malformed BSON data to bypass validation.

2

How do I fix CVE-2026-6231?

To fix CVE-2026-6231, it is recommended to upgrade to a version of the MongoDB C Driver that is higher than 1.30.5 and does not include the vulnerabilities available in versions 2.0.0 and 2.0.1.

3

What systems are affected by CVE-2026-6231?

CVE-2026-6231 affects the MongoDB C Driver versions 1.30.5 and below, as well as specific 2.0.0 and 2.0.1 releases.

4

What vulnerabilities does CVE-2026-6231 exploit?

CVE-2026-6231 exploits the bson_validate function which may incorrectly report successful validation, skipping checks for certain inputs.

5

What are the implications of CVE-2026-6231?

The implications of CVE-2026-6231 can lead to data integrity issues if invalid BSON data, including malformed UTF-8 sequences, is processed by the application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203