CVE-2026-135897 Sensitive information in connection string parse errors in the Rust Driver

Published Updated

Malformed connection strings make the MongoDB Rust driver leak database passwords into error messages readable by anyone with log access.

CVSS score

Medium

5.7/10

CVSS 4.0 · Scored by Mongodb Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Local or same network
Any signed-in user, no user action

What is CVE-2026-135897?

CVE-2026-135897 is a medium-severity information disclosure vulnerability in MongoDB Rust Driver, published on 25 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-209

How severe is CVE-2026-135897?

CVE-2026-135897 scores 5.7 out of 10 under CVSS 4.0, which is medium severity. It was scored by Mongodb.

Attack vector
Local
Attack complexity
Low
Attack requirements
Present
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None

CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Which versions are affected by CVE-2026-135897?

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

How do I fix CVE-2026-135897?

No fix has been published for CVE-2026-135897 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate any secrets that may have been exposed. More about Information disclosure.

Is CVE-2026-135897 being exploited?

There is no known exploitation of CVE-2026-135897 in the wild and no public exploit code.

Sources

Is CVE-2026-135897 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free