CVE-2026-129924
Credential exposure via unmasked connection string in driver parse-error messages for the Ruby driver
Medium · 6.8Fix available
- CVSS
- 6.8
- EPSS
- 0.15% (p4)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-23
- Product
- MongoDB Ruby Driver
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Description
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.
Fixed in
2.26.2
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Ruby Driver | >=2.0.3, <2.26.2 | 2.26.2 |