Skip to main content

MongoDB Java Driver CVE-2026-129931

| EUVDEUVD-2026-130717 MEDIUM
Error Message Information Leak (CWE-209)
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 application output or logs
  2. Delivery
    Trigger or await driver config/error text generation
  3. Exploit
    Driver emits credentials in clear text
  4. Execution
    Harvest database/proxy credentials
  5. Impact
    Reuse credentials to authenticate to backend

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK

1 technique across 1 tactic: Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that (1) an application embeds the MongoDB Java Driver and supplies a connection configuration containing live database or proxy credentials, (2) the vulnerable configuration-processing component generates text or error output that includes those credential values without placeholder masking, and (3) the attacker can read that produced output (application logs, error/crash output, console, or any downstream log aggregation). The CVSS 4.0 vector is AV:L with an attack requirement (AT:P) and PR:L, so this is not remote-unauthenticated: the actor needs local access to the output and some level of privilege, and leakage only occurs for the specific code paths that fail to substitute a placeholder (other parts of the driver already mask credentials). Limiting factors: credentials are only exposed if they are present in the config and if the application actually emits or stores the affected output; environments that use credential-less auth (e.g., IAM/X.509) or that do not persist driver text/error output have reduced exposure.

Impact

This is a low-to-moderate severity information-disclosure issue (CWE-209) that is best treated as a hygiene/defense-in-depth priority rather than an emergency. The only CVSS vector supplied is 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, score 5.7), which signals a local attack vector, an additional attack requirement (AT:P), and that the attacker needs some privilege (PR:L) - consistent with the mechanism, where credentials leak into generated text/error output and a party must be able to read that output to benefit. Impact is confidentiality-only (VC:H), with no integrity or availability effect and no scope change. No EPSS score, no CISA KEV listing, and no verified public exploit were provided, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month,' which aligns with a scheduled-remediation rather than act-now posture. The practical danger is amplification: although a single leak needs local/log read access, exposed database or proxy credentials are reusable and can enable broader compromise once harvested from logs, consoles, crash dumps, or aggregated log stores. Note the CVSS 4.0 vector marks this AV:L, but real-world exposure depends on where the application's output is shipped - centralized logging or error-reporting pipelines can widen the effective audience beyond a local host; verify how the embedding application handles driver output.

Exploit ScenarioDerived

An application embedding the MongoDB Java Driver configures a connection with embedded credentials; during normal operation or on error, the driver writes those credential values into generated text or error output in clear text instead of masking them. An actor with the ability to read that output - for example via application logs, a crash report, a console, or an aggregated log store - reads the MongoDB database or proxy credentials and reuses them to authenticate directly. No verified public exploit code was identified at the time of analysis.

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

MongoDB Java Driver writes database and proxy credential values from connection configuration into generated text and error output without substituting the placeholder that other parts of the driver use, so anyone able to read an embedding application's logs, console, or crash output can recover those secrets in clear text. Applications are affected only where they embed the driver, supply a connection configuration containing live credentials, and actually emit or persist the affected output; environments using credential-less authentication such as IAM or X.509, or that do not retain driver text/error output, have reduced exposure. This is a CWE-209 information-disclosure issue rated low-to-moderate severity and prioritized as a this-month hygiene fix; no public exploit has been identified at time of analysis and no CISA KEV listing applies.

RemediationAI

No vendor-released patch version is identified in the available data; monitor and follow the MongoDB JIRA issue JAVA-6297 (https://jira.mongodb.org/browse/JAVA-6297) for the fixed driver release and upgrade to that version when published. Until then, reduce exposure along the routes the assessment identifies: move to credential-less authentication such as IAM or X.509 where the deployment supports it, accepting the infrastructure and configuration changes that entails, and stop persisting or aggregating driver text and error output that can carry connection configuration, understanding that this reduces diagnostics and observability. Because exposure occurs through output that is read or stored, review existing logs, console captures, and crash artifacts for credential strings, and treat any database or proxy credentials found there as compromised and rotate them.

Affected VersionsENISA

Java Driver 3.1.0 <5.15.0

Affected Packages

euvd java_driver fix: 5.15.0

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

The flaw is CWE-209 (generation of error message containing sensitive information) in the connection-configuration processing path of the MongoDB Java Driver, the official Java client library applications use to connect to MongoDB deployments (and, per the description, to proxies). The driver normally renders credentials as a placeholder when it stringifies configuration for logs or exceptions; the affected component skips that substitution, so credential values from the connection configuration appear verbatim in generated text and error output. Because the exposure is through output the application itself produces and stores, the assessed vector is local (AV:L) with an attack requirement of AT:P and PR:L - the actor needs access to that output and some privilege, and only the specific code paths that fail to mask are affected. The published CPE cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:*:*:* is a wildcard, and the input does not state which driver releases are affected, which exact text/error paths leak, or how the leak is triggered beyond the description; the referenced MongoDB JIRA issue JAVA-6297 is the tracking item for those details.

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 4.7 MEDIUM

Local because the attacker must read application output (AV:L); AC:H and PR:L reflect the attack requirement and privilege needed to access that output; confidentiality-only credential leak, so I/A:N.

3.1 AV:L/AC:H/PR:L/UI:N/S:N/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
Red Hat 4.7 MEDIUM

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 - 22:19 EUVD
CVE Published
Nov 19, 2026 - 20:23 cve.org
MEDIUM 5.7

DescriptionCVE.org

A component of the MongoDB Java Driver that processes connection configuration places credential values taken from that configuration into generated text and error output without replacing them with a placeholder, unlike other parts of the driver. A party able to read output produced by an application that embeds the driver may obtain database or proxy credentials in clear text.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
official MongoDB driver for Java, widely used in enterprise JVM applications
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

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

Vendor StatusVendor

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