Cleartext Storage of Sensitive Information in MongoDB Driver Logging During Client Initialization
Medium6.5CVE-2026-18710 · Published Aug 11, 2026
### Impact Starting from driver version 4.11.0, `ProxySettings.toString()` included the SOCKS5 proxy username and password in application logs ### Patches The username and password are no longer included in `toString()` starting from driver versions 5.9.2 and higher. ### Workarounds If you cannot upgrade, set the `org.mongodb.driver.client` logger to WARN or higher to suppress the client-construction message. We do not recommend this as a long-term measure: it silences diagnostic information that is valuable for support, and it does not remove credentials already written to existing logs. ### References https://github.com/mongodb/mongo-java-driver/blob/main/driver-core/src/main/com/mongodb/connection/ProxySettings.java https://www.cve.org/CVERecord?id=CVE-2026-18710 https://jira.mongodb.org/browse/JAVA-6266
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| mongodb-driver-reactivestreams Maven | >= 4.11.0, < 5.9.2 | 5.9.2 |
| mongodb-driver-sync Maven | >= 4.11.0, < 5.9.2 | 5.9.2 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
More MongoDB advisories
All MongoDB| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 11 | MongoDB Server: improper authorization | High7.2 | 8.3.8+2 more |
| Aug 11 | MongoDB Server: use after free | High7.1 | 8.3.8+1 more |
| Aug 11 | MongoDB Server: missing authorization | High7.1 | 8.3.8 |
| Aug 11 | MongoDB Server: untrusted input in a security decision | High7.1 | 8.3.8+2 more |
| Aug 11 | MongoDB Server: use after free | High7.5 | 8.3.8 |
| Aug 11 | MongoDB Server: denial of service | Medium5.3 | 8.3.8 |