Unmasked Connection String Exposure in MongoDB Ruby Driver from MongoDB
CVE-2026-129924
6.8MEDIUM
What is CVE-2026-129924?
The MongoDB Ruby driver has a vulnerability that exposes unmasked connection string content in error messages when connection strings cannot be parsed. If such a connection string contains sensitive information, like secrets or credentials, these may be inadvertently revealed in cleartext within application error outputs or logs. Importantly, no specific privileges on the driver or network access are required to trigger this issue; anyone with visibility into the application’s error messages can potentially access the leaked secrets.
Affected Version(s)
Ruby Driver 2.0.3 < 2.26.2