MongoDB Ruby Driver Flaw Exposes Full Credentials in Error Logs
A security vulnerability in the MongoDB Ruby driver, identified as RUBY-3939, allows cleartext database passwords to be exposed in error messages. The flaw stems from two combined defects: raw URI fragments are interpolated into error details without redaction, and the redaction regex fails to match passwords containing slashes, question marks, or hash symbols. This results in the full password, not just a fragment, appearing in logs and error trackers. The issue affects both standard and SRV connection strings and is currently under review for a fix.