Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-6231: CWE-20 Improper input validation in MongoDB Inc. C Driver

0
Medium
VulnerabilityCVE-2026-6231cvecve-2026-6231cwe-20
Published: Mon Apr 13 2026 (04/13/2026, 15:31:55 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB Inc.
Product: C Driver

Description

CVE-2026-6231 is a medium severity vulnerability in the MongoDB C Driver affecting versions prior to 1. 30. 5, 2. 0. 0, and 2. 0. 1. The bson_validate function may prematurely return success on certain inputs, causing it to skip proper validation of BSON data. This can allow malformed or invalid UTF-8 sequences to bypass validation and be processed incorrectly. Applications relying on this validation to handle untrusted BSON data may be impacted.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/13/2026, 16:16:50 UTC

Technical Analysis

The vulnerability in MongoDB Inc.'s C Driver involves the bson_validate function, which can incorrectly report successful validation by returning early on specific inputs. This improper input validation (CWE-20) may lead to malformed BSON data, including invalid UTF-8 sequences, bypassing validation checks. Affected versions include those prior to 1.30.5, as well as versions 2.0.0 and 2.0.1. The issue could affect applications that depend on bson_validate to ensure the integrity of untrusted BSON data before processing. The CVSS 4.0 base score is 5.3, indicating medium severity, with network attack vector and low privileges required.

Potential Impact

The impact is that malformed or invalid BSON data may bypass validation, potentially causing applications to process corrupted or maliciously crafted BSON data incorrectly. This could lead to unexpected behavior or errors in applications relying on bson_validate for input validation. There is no indication of direct code execution or privilege escalation from the provided data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, users should monitor MongoDB Inc.'s advisories for updates. Until a fix is available, applications should consider additional validation layers or avoid relying solely on bson_validate for untrusted BSON data validation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-04-13T15:19:17.273Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69dd138382d89c981f0e28ed

Added to database: 4/13/2026, 4:02:11 PM

Last enriched: 4/13/2026, 4:16:50 PM

Last updated: 4/13/2026, 5:15:53 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses