Credential exposure via unmasked option values in Go driver connection string parse errors
- State
- Published
- Severity
- 5.7 Medium
- Published
- Nov 19, 2026
- Updated
- Nov 19, 2026
- Reserved
- Nov 16, 2026
Description
The MongoDB Go driver's connection string parser includes the raw, undecoded value of a query option in the error it returns when that value contains invalid percent encodings. When the option holds a secret, such as a TLS key file password or an AWS session token, the secret appears in plain text in the error. A party with low-privileged read access to wherever the application records or displays that error may learn the secret.
| Product | Versions |
|---|---|
| GO Driver MongoDB | 1.0.0 and later Affected |
| GO Driver MongoDB | 2.0.0 to before 2.10.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.7 Medium | mongodb | |
| 3.1 | 4.7 Medium | mongodb |
Weaknesses
- CWE-209 Generation of Error Message Containing Sensitive Information
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.