Credential exposure via unmasked connection string in driver parse-error messages for the C driver
Summary
The MongoDB C Driver places a submitted connection-string option value into a diagnostic message without redaction when that option fails validation. The message is returned to the calling application and is also written to the process's standard error by the driver's default logging behavior. A par...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBC Driver |
≥ 1.9.0, < 1.30.16→ 1.30.16 ≥ 2.0.0, < 2.5.9→ 2.5.9 |
1.30.16 2.5.9 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129939 mongo-c-driver Fix available
- Ubuntu UBUNTU-CVE-2026-129939 mongo-c-driver No fixed version in this record
Original description The description as published by the source.
The MongoDB C Driver places a submitted connection-string option value into a diagnostic message without redaction when that option fails validation. The message is returned to the calling application and is also written to the process's standard error by the driver's default logging behavior. A party that can influence the connection string given to an application using the driver may cause that field's contents to be recorded, which may result in unintended disclosure of information the application placed in that field.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web cna@mongodb.com
- web github.com