RubySec

Providing security resources for the Ruby community

CVE-2026-129924 (mongo): MongoDB Ruby driver can include unmasked connection string content

MongoDB Ruby driver can include unmasked connection string content

Published: November 19, 2026

SECURITY IDENTIFIERS

GEM

mongo

SEVERITY

CVSS v3.x: 5.5 (Medium)

UNAFFECTED VERSIONS

< 2.0.3

PATCHED VERSIONS

>= 2.26.2

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.

RELATED