{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-6231 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-6231 is a medium-severity vulnerability in MongoDB Inc. C Driver, published on 13 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-6231 and fix it if it is affected.\n\nWhat it is: CVE-2026-6231 is a medium-severity vulnerability in MongoDB Inc. C Driver, published on 13 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-6231 in the wild and no public exploit code.\n\nAffected product: MongoDB Inc. C Driver. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-6231/ (Markdown: https://insights.sbomify.com/CVE-2026-6231/index.md)","id":"CVE-2026-6231","markdown":"https://insights.sbomify.com/CVE-2026-6231/index.md","name":"CVE-2026-6231","record":{"aliases":["DEBIAN-CVE-2026-6231","GHSA-q869-m422-4qcv","JLSEC-2026-773","UBUNTU-CVE-2026-6231"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"MongoDB C Driver","requires_auth":"low_privilege","summary":"The MongoDB C Driver may incorrectly validate BSON data, allowing malformed inputs to bypass checks and potentially cause downstream processing errors.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mongodb","cpe":[{"product":"c_driver","vendor":"mongodb"}],"cvss":{"score":5.3,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"bson_validate may skip validation when processing certain inputs","id":"CVE-2026-6231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Out-of-bounds write in LR11xx Transceiver","id":"CVE-2026-6232"},"packages":[],"prev":{"headline":"Tainacan \u003c= 1.0.3 - Unauthenticated SQL Injection via 'geoquery' REST API Parameter","id":"CVE-2026-6230"},"products":["C Driver"],"published":"2026-04-13","related":[{"cvss_score":9.2,"headline":"Heap overflow via oversized decrypted TLS record sequence in Windows Secure Channel stream","id":"CVE-2026-93393","kev_date_added":null,"published":"2026-09-17"},{"cvss_score":8.6,"headline":"MongoDB C Driver Cyrus SASL Canonicalization Buffer Overflow","id":"CVE-2026-6691","kev_date_added":null,"published":"2026-05-06"},{"cvss_score":8.2,"headline":"Heap corruption via OCSP request double free from crafted multi-URL certificate in TLS client","id":"CVE-2026-84964","kev_date_added":null,"published":"2026-09-03"},{"cvss_score":7.3,"headline":"Accessing Untrusted Directory May Allow Local Privilege Escalation","id":"CVE-2024-7553","kev_date_added":null,"published":"2024-08-07"},{"cvss_score":6.9,"headline":"Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()","id":"CVE-2026-93395","kev_date_added":null,"published":"2026-09-17"},{"cvss_score":6.9,"headline":"Bulk write with options may read invalid memory","id":"CVE-2025-12119","kev_date_added":null,"published":"2025-11-18"},{"cvss_score":6.3,"headline":"libmongoc SCRAM client nonce-validation bypass","id":"CVE-2026-93394","kev_date_added":null,"published":"2026-09-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-13","vendors":["MongoDB Inc."]},"summary":"The MongoDB C Driver may incorrectly validate BSON data, allowing malformed inputs to bypass checks and potentially cause downstream processing errors.","url":"https://insights.sbomify.com/CVE-2026-6231/"}