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

Read the record on cve.org

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.

ProductVersions
GO Driver MongoDB1.0.0 and later Affected
GO Driver MongoDB2.0.0 to before 2.10.1 Affected

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.