CVE-2026-129934: Credential exposure via unmasked option values in Go driver connection string parse errors

Published Nov 19, 2026
·
Updated

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.

Affected Software

5 affected components
go/go.mongodb.org/mongo-driver
debian/golang-mongodb-mongo-driver*
debian/golang-mongodb-mongo-driver*
debian/golang-mongodb-mongo-driver*
debian/golang-mongodb-mongo-driver<=1.8.4+ds1-3, <=1.17.1+ds1-2, <=1.17.9+ds1-1

Event History

Nov 19, 2026
CVE Published
via MITRE·07:22 PM
Data Sourced
via MITRE·07:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:17 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using the MongoDB Go driver are exposed when a connection string contains a secret-bearing query option with invalid percent encoding and the resulting parse error is recorded or displayed. Low-privileged users who can read those errors may be able to obtain the secret.

2

What must happen for a secret to be disclosed?

An invalid percent encoding must be present in the raw value of a connection-string query option, and that option must contain a secret such as a TLS key file password or AWS session token. The parser must return an error, and an unauthorized party must be able to read the location where the application logs or displays it.

3

How can teams reduce exposure before a fix is applied?

Avoid placing secrets in connection-string query option values that could be emitted in parsing errors, and ensure those values are correctly percent-encoded. Restrict read access to application logs and error displays that may contain connection-string parsing errors.

4

How can you determine whether secrets may already have been exposed?

Review application logs and error-reporting locations for MongoDB Go driver connection-string parse errors related to invalid percent encodings. Check whether affected raw option values contained secrets, and treat any such values visible to low-privileged readers as potentially disclosed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203