Skip to main content

MongoDB Python Driver EUVDEUVD-2026-130684

| CVE-2026-129927 MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-11-19 mongodb
5.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain read access to app logs/output
  2. Exploit
    Locate driver object serialized to text
  3. Execution
    Extract clear-text key-protecting value
  4. Impact
    Reuse credential for further access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

Exploitation requires two conditions to coincide: (1) the embedding application must convert a MongoDB Python Driver object to text - via its string/repr representation - and emit that into its own stdout/stderr or log files (a debug line, error trace, or diagnostic dump), and (2) a configuration option holding private-key-protecting material (the secret that guards the private key) must be set. The attacker gains nothing remotely; exploitation is limited by the need for read access to the application's local output or log files (PR:L, AV:L) and by the fact that the secret is only exposed if the application actually serializes and records the object (AT:P). Default behavior that never logs the driver object leaves no exposure.

Impact

This is a moderate-severity information-disclosure weakness (CWE-532), not a high-priority emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L/UI:N/VC:H) and the 5.7 base score agree with the description: impact is confined to confidentiality (VC:H / VI:N / VA:N), the attack is local (AV:L), requires some privilege (PR:L - read access to the application's output or log files), and carries an attack requirement (AT:P) because the sensitive value is only exposed if the application actually serializes the driver object to text and records it. No EPSS score and no SSVC automatable/technical-impact breakdown were supplied, and the only decision signal is vuln.today's 'this_month' priority - consistent with a real but non-urgent issue. This is not in CISA KEV and no exploit code was provided (the sole reference is the MongoDB Jira tracker PYTHON-6058, an advisory/tracking link, not a PoC). The realistic risk is a secondary credential-leak: an attacker who already has read access to logs can harvest a private-key-protecting value, so it functions as a privilege-escalation/lateral-movement enabler rather than an initial-access vulnerability. Treat as a genuine but low-urgency fix prioritized this month, not a drop-everything event.

Exploit ScenarioDerived

An application using the MongoDB Python Driver logs or prints its client/driver object (for example via a debug log line, an error trace, or a diagnostics dump), causing the configuration value that protects the private key material to be written in clear text. A party with read access to those local output or log files - a co-located operator, a log-aggregation account, or an attacker who has already gained local file read - then reads the recorded value and obtains the credential. No public exploit code was identified; the mechanism is the driver's text conversion emitting the secret rather than redacting it.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

The MongoDB Python Driver (PyMongo) can write a configuration option value that protects private key material in clear text into the embedding application's own output and log records when a driver object is converted to its text (string/repr) representation. An attacker who can read those local log files or captured stdout/stderr can recover the credential; exploitation requires both that the application serializes a driver object into its logs and that the key-protecting option is actually configured. There is no confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis; the exposure is local, requires read access to application output, and does not affect deployments that never log driver objects.

RemediationAI

No vendor-released patch or fixed version is identified in the available data; the authoritative tracking reference is the MongoDB Jira ticket PYTHON-6058 (https://jira.mongodb.org/browse/PYTHON-6058), which should be monitored and the driver upgraded to the first release that stops emitting the option value in its text representation. Until then, the exposure is bounded by the two prerequisites: restrict read access to the embedding application's log files and captured stdout/stderr to the smallest set of operators and services (trade-off: complicates troubleshooting workflows that rely on shared log access), and stop emitting stringified MongoDB Python Driver objects in debug lines, error traces, and diagnostic dumps or pass them through a redaction/sanitization step before logging (trade-off: reduced diagnostic detail when investigating driver errors). Rotating the affected key-protecting credential and the private key it guards is warranted wherever logs containing the driver object were broadly accessible.

Affected VersionsENISA

Python Driver 3.1 <4.20.1

Affected Packages

euvd python_driver fix: 4.20.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a CWE-532 (insertion of sensitive information into log file) weakness in the MongoDB Python Driver, an official client library used by Python applications to connect to MongoDB. The defect is that an object-to-string conversion path in the driver renders the value of a configuration option that protects private key material in plaintext, so any debug line, error traceback, or diagnostic dump that stringifies a driver object propagates the secret into the embedding application's stdout/stderr or log records. The assessed CVSS:3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N describes an attacker with local access and low privileges who gains high confidentiality impact only; the CVSS:4.0 vector adds AT:P (attack requirements present), reflecting that the secret is exposed only when the application actually serializes and records the driver object. There is no integrity or availability impact, no remote attack path, and the available sources do not state whether a single named option is involved or how broadly the stringification path is reachable.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 5.7 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Disclosure requires read access to local log/output files (AV:L, PR:L); only confidentiality is affected (C:H, I:N, A:N) and the private-key-protecting secret is fully exposed in clear text.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 21:19 EUVD
CVE Published
Nov 19, 2026 - 19:28 cve.org
MEDIUM 5.7

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
MongoDB's official Python driver is widely deployed across Python application stacks
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy