The MongoDB Ruby driver can include unmasked connection string content in the error it raises...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| MongoDBRuby Driver |
≥ 2.0.3, < 2.26.2→ 2.26.2 |
2.26.2 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-129924 ruby-mongo No fixed version in this record
Original description The description as published by the source.
The MongoDB Ruby driver can include unmasked connection string content in the error it raises when a connection string cannot be parsed. If that connection string carries a secret, the secret may be disclosed in cleartext through the application's error output or logs. No privileges on the driver and no network access are needed to produce the error; a party able to read the application's error output may obtain the secret.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web cna@mongodb.com
- web nvd.nist.gov
- web github.com