CVE-2026-135897: Sensitive information in connection string parse errors in the Rust Driver
The MongoDB Rust driver's connection-string parser can include database password text and authentication property values in the error messages it returns when a connection string is malformed. The optional error-redaction feature does not fully remove this text. A party with read access to the application's logs or error output may obtain part or all of a database credential.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications using the MongoDB Rust driver are exposed if they process malformed connection strings containing passwords or authentication properties and write the resulting parse errors to logs or other error output readable by another party.
What access does an attacker need to obtain credentials through this flaw?
An attacker needs read access to the application's logs or error output. Exploitation also depends on a malformed connection string being parsed with credential material present in it.
Does enabling error redaction fully mitigate the issue?
No. The optional error-redaction feature does not fully remove database password text and authentication property values from these parse errors.