Read the docs

Credential exposure via unmasked connection string in MongoDB Ruby driver errors

Priority LOW 29CWE-209Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-209.

Summary

The MongoDB Ruby Driver from 2.0.3 before 2.26.2 can include unmasked connection string content in the error it raises when a connection string cannot be parsed. If the connection string carries a secret, the secret may be disclosed in cleartext through application error output or logs (CWE-209). A local user with low privileges who can read the application's error output may obtain the secret.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

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.

Why it matters now

EPSS 0.00151 2nd percentileScored 2026-11-30
Fix Fixed Ruby Driver (MongoDB): 2.26.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBRuby Driver2.0.3 to before 2.26.22.26.2Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 2.0.3 to before 2.26.2 Fixed in 2.26.2 Patch available CNA

Remediation

Upgrade the MongoDB Ruby Driver to version 2.26.2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA Ruby Driver (MongoDB) Fixed in 2.26.2

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Ruby Driver 2.26.2

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-95108 MongoDB Ruby Driver: NUL-byte injection enables identity confusion in SASL PLAINPriority LOW 28

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-129924
  2. 2026-11-19 Alias added: GHSA-gf25-mgjq-4vj3

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources