The MongoDB Go Driver Team is pleased to release version 2.10.1 of the official MongoDB Go Driver.
Release Highlights
Warning
Go Driver versions before 2.10.1 (this release) are affected by a security issue related to credential exposure in connection string parse errors (CVE-2026-129934). Users are encouraged to upgrade to the fixed version as soon as possible.
Warning
Go Driver versions before 2.10.1 (this release) are affected by a security issue related to authentication identity smuggling via NUL characters in PLAIN credentials (CVE-2026-129935). Users are encouraged to upgrade to the fixed version as soon as possible.
Note
As a result of the CVE fixes, connection string errors are now less detailed, and code that matches on the previous error text may need to be updated.
This release addresses CVE-2026-129934, credential exposure in connection string parse errors. When a connection string option value contained an invalid percent-encoding, the parse error quoted the entire raw value, which could include a secret. Connection string parse errors no longer include connection string contents. See GHSA-3c2m-3gh6-65rx.
This release also addresses CVE-2026-129935, authentication identity smuggling via NUL characters in PLAIN credentials. The driver now rejects a PLAIN username or password that contains a \x00 character before sending an authentication command. See GHSA-29qr-p9gm-xfvf.
Full Changelog: v2.10.0...v2.10.1
For a full list of tickets included in this release, please see the list of fixed issues.
Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the Go Driver is greatly appreciated!