Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl rogue MongoDB deployment
-
DeliveryLure victim to connect via MONGODB-OIDC
-
ExploitServe crafted OIDC discovery document with malicious URI scheme
-
ExecutionUnpatched driver dispatches URI to OS without scheme validation
-
PersistOS invokes registered protocol handler (file/custom scheme)
-
ImpactExfiltrate OIDC credentials or execute code in user context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires two simultaneous prerequisites: (1) the victim must use MONGODB-OIDC as the configured authentication mechanism when connecting to a MongoDB deployment - standard SCRAM, username/password, or x.509 authentication modes are entirely unaffected; and (2) the attacker must control the MongoDB deployment the victim connects to, achieved either by hosting a rogue server and inducing the user to connect (social engineering, phishing, misconfigured connection string) or by performing network-level interception of the OIDC discovery request. Code execution as a specific outcome additionally requires that the victim's operating system has a registered protocol handler for the scheme the attacker injects - this condition is OS-dependent and non-universal, making credential exposure the more broadly applicable harm. Users whose MongoDB clients connect exclusively to verified, organization-managed deployments over controlled networks are not at risk, and the MONGODB-OIDC mode must be explicitly configured rather than being a default. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) yields a base score of 6.3 (Medium). The AT:P qualifier accurately captures that exploitation requires a specific attack prerequisite - attacker control of the MongoDB deployment the victim connects to, or successful network-level interception of the OIDC discovery request. However, the UI:N metric appears inconsistent with the description's explicit 'user induced to connect' language; UI:P (passive user interaction) better reflects the social engineering step required, and security teams should factor this into triage. The vulnerability is not listed in CISA KEV, no EPSS data was available for this CVE ID, and no proof-of-concept has been identified, all of which support a moderate-priority rather than emergency-priority classification. Impact is bounded by user context - code execution, where achievable, occurs without privilege escalation - and the credential exposure outcome is contingent on what OIDC token the user holds. The combination of social engineering prerequisite, specific MONGODB-OIDC configuration requirement, and OS protocol handler dependency makes real-world exploitation meaningfully harder than raw CVSS network vector suggests. |
| Exploit ScenarioDerived | An attacker hosts a rogue MongoDB instance and configures its OIDC issuer to serve a discovery document containing a malicious URI scheme - such as ms-msdt:// or a custom file:// path - as the token_endpoint value. A developer or data analyst is deceived via phishing, a misconfigured connection string, or DNS manipulation into connecting to this deployment using MONGODB-OIDC authentication; the unpatched driver then passes the unvalidated URI to the Windows or macOS default protocol handler, which may invoke a registered local application that either exfiltrates the user's OIDC tokens or executes attacker-supplied arguments. No public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
MongoDB Atlas SQL ODBC Driver and Schema Builder CLI fail to validate URI schemes in authorization and token endpoints returned by an OIDC issuer's discovery document, allowing an attacker-controlled MongoDB deployment to dispatch arbitrary URIs to a victim's operating system protocol handler. Users employing MONGODB-OIDC authentication who are induced to connect to a rogue or compromised MongoDB deployment may have OIDC credentials exposed or, under conditions where a dangerous OS protocol handler is registered, experience code execution within their user session context. No public exploit has been identified at time of analysis, and exploitation carries meaningful social engineering prerequisites that constrain real-world reach despite the network-accessible attack vector.
RemediationAI
Upgrade both MongoDB Atlas SQL ODBC Driver and MongoDB Schema Builder CLI to the patched releases documented in the MongoDB SQL Interface changelog at https://www.mongodb.com/docs/sql-interface/changelog - exact fixed version numbers are not independently confirmed from available input data and must be verified directly from that source. As an immediate compensating control, restrict client workstations to connecting only to trusted, organization-managed MongoDB deployments by enforcing network-layer allowlists or firewall rules that prevent connections to arbitrary MongoDB endpoints; this eliminates the attacker-controlled-deployment prerequisite. Disabling MONGODB-OIDC as the authentication mechanism in client configurations and falling back to x.509 certificate or SCRAM authentication removes the attack surface entirely, though this will break existing SSO and identity-provider integrations and requires coordination with authentication infrastructure teams. Where MONGODB-OIDC must remain enabled, organizations should audit which protocol handlers are registered on client operating systems and remove or restrict dangerous handlers (file://, ms-msdt://, custom schemes) to limit the code-execution outcome while the credential-exposure risk remains.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Both affected components - MongoDB Atlas SQL ODBC Driver (CPE: cpe:2.3:a:mongodb:atlas_sql_odbc_driver) and MongoDB Schema Builder CLI (CPE: cpe:2.3:a:mongodb:schema_builder_cli) - implement MONGODB-OIDC authentication, which uses OpenID Connect discovery: clients fetch a well-known JSON document from the configured issuer, which declares authorization_endpoint and token_endpoint URI values. The root cause is CWE-20 (Improper Input Validation): neither component validates the URI scheme of these endpoint values before passing them to the operating system for dispatch. A malicious OIDC discovery document can return non-HTTPS schemes such as file://, ms-msdt://, or custom registered handlers, triggering OS-level protocol dispatch - a technique known as URI scheme abuse or protocol handler hijacking. The wildcard version entries in both CPE strings indicate all published versions of both products are affected, with no floor or ceiling version specified in available data.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
User must be induced to connect to the malicious deployment (UI:R); OS protocol handler invocation represents a scope change beyond the driver (S:C); impacts are user-context-limited credential theft and conditional code execution.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
MongoDB Schema Manager and MongoDB Atlas SQL ODBC Driver do not validate the scheme of the authorization and token endpoints returned by an OIDC issuer's discovery document. A user induced to connect to an uncontrolled MongoDB deployment using MONGODB-OIDC authentication may have an uncontrolled URI dispatched to their operating system's default protocol handler, potentially exposing credentials or, under certain conditions, resulting in code execution in the user's context.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-57551
GHSA-gxxm-9rmv-h4mp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB