Read the docs

Credential exposure via unmasked option in Python driver text output

Priority LOW 25CWE-532Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Partial Red Hat: 4 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-532.

Summary

The MongoDB Python Driver from 3.1 before 4.20.1 writes the value of a configuration option that protects private key material in clear text into the application's own output and log records when a driver object is converted to text. A local user who can read those output or log files can obtain the credential. The flaw is classified as CWE-532.

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

Description from the CNA

A credential-handling weakness in the MongoDB Python Driver allows a configuration option value that protects private key material to be written in clear text into the embedding application's own output and log records when a driver object is converted to text. A party able to read that output may obtain the credential. Obtaining it requires read access to the application's local output or log files.

Why it matters now

EPSS 0.0015 2nd percentileScored 2026-11-30
Fix Partial Python Driver (MongoDB): 4.20.1Red Hat: 4 without a fix

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBPython Driver3.1 to before 4.20.14.20.1Patch availableCNA
  • Python Driver VendorMongoDB Affected 3.1 to before 4.20.1 Fixed in 4.20.1 Patch available CNA

Remediation

Upgrade MongoDB Python Driver to 4.20.1. Red Hat lists no fix for Red Hat Enterprise Linux 8, Red Hat OpenShift AI (RHOAI), Red Hat OpenStack Platform 13 (Queens) and Red Hat OpenStack Platform 17.1, and Red Hat states that no fix plan is available for these products.

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

  • Fix · CNA Python Driver (MongoDB) Fixed in 4.20.1

Fixed in the same release

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

  • Release ·

    MongoDB Python Driver 4.20.1

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-95109 Identity confusion in MongoDB Python Driver SASL PLAIN via NUL bytesPriority LOW 28

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix yet: Fix deferred
Red Hat OpenStack Platform 17.1AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-129927
  2. 2026-11-20 Affected versions changed · Red Hat
  3. 2026-11-20 CVSS score added · Red Hat

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