Credential exposure via unmasked option value in Python driver object text output
- State
- Published
- Severity
- 5.7 Medium
- Published
- Nov 19, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 16, 2026
Description
A credential-handling weakness in the MongoDB Python Driver allows a configuration option value that protects private key material to be written in clear text into the embedding application's own output and log records when a driver object is converted to text. A party able to read that output may obtain the credential. Obtaining it requires read access to the application's local output or log files.
| Product | Versions |
|---|---|
| Python Driver MongoDB | 3.1 to before 4.20.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.7 Medium | mongodb | |
| 3.1 | 5.5 Medium | mongodb |
Weaknesses
- CWE-532 Insertion of Sensitive Information into Log File
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.