CVE-2026-129931 — MongoDB Java Driver
One of 3 MongoDB Java Driver vulnerabilities published together by NVD: our article covers all of them.
JavaDatabasesVulnerabilitiesSummary
A component of the MongoDB Java Driver that processes connection configuration places credential values taken from that configuration into generated text and error output without replacing them with a placeholder, unlike other parts of the driver. A party able to read output produced by an application that embeds the driver may obtain database or proxy credentials in clear text.
Severity breakdown
Medium · 5.7
An attacker with a normal user account can exploit this with local access, without any user action, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- high on confidentiality, none on integrity and availability
- Impact on other systems
- none
Weakness
- CWE-209: Generation of Error Message Containing Sensitive Information
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB Java Driver | ≥ 3.1.0, < 5.15.0 | 5.15.0 |
References by type
Other references
Affected
- MongoDB Java Driver
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-129931?
A component of the MongoDB Java Driver that processes connection configuration places credential values taken from that configuration into generated text and error output without replacing them with a placeholder, unlike other parts of the driver. A party able to read output produced by an application that embeds the driver may obtain database or proxy credentials in clear text. Weakness type: Generation of Error Message Containing Sensitive Information (CWE-209).
How severe is CVE-2026-129931?
CVE-2026-129931 has a CVSS 4.0 base score of 5.7 (medium), from the CNA (mongodb.com). An attacker with a normal user account can exploit this with local access, without any user action, but only under specific conditions.
Is CVE-2026-129931 being exploited?
Not as far as is known: CVE-2026-129931 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026. EPSS estimates a 0.1% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-129931?
MongoDB Java Driver ≥ 3.1.0, < 5.15.0 (fixed in 5.15.0).
How do I fix CVE-2026-129931?
Update to a fixed release: MongoDB Java Driver 5.15.0.