Unmasked connection string values in MongoDB C Driver error messages
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-209.
Summary
The MongoDB C Driver writes a submitted connection-string option value into a diagnostic message without redaction when that option fails validation. The message goes to the calling application and to standard error through the driver's default logging, which exposes sensitive data (CWE-209). A party that can influence the connection string given to an application using the driver can cause that field's contents to be recorded, disclosing information the application placed in it.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade MongoDB C Driver to 1.30.16 for the 1.x line or 2.5.9 for the 2.x line. The sources list no fixed version for other releases.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA C Driver (MongoDB) Fixed in 1.30.16, 2.5.9
Timeline
- 2026-11-19 Threatist record created from CVE-2026-129939
References
More MongoDB vulnerabilities
- TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
- TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
- TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
- TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
- TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
- TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences