Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence driver connection configuration
-
DeliveryVictim completes OIDC login callback
-
ExploitDriver skips permitted-host enforcement
-
ExecutionBearer token sent to unpermitted host
-
ImpactReuse leaked credential
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V12 - Secure Communication Improper restriction of communication channel
|
| Exploitation Conditions | Exploitation requires the embedding application to use MONGODB-OIDC authentication with an OIDC_CALLBACK or OIDC_HUMAN_CALLBACK, on affected driver versions 6.7.0 up to (but not including) 7.9.0. The attacker does not need a database account but must be able to influence the connection settings the application passes to the driver - for example the connection string or authMechanismProperties (such as the TOKEN_RESOURCE/host and ENVIRONMENT values) - so that a permitted host outside the configured allowlist is used. Exploitation is further limited by the need for user interaction (UI:A): a victim must complete the OIDC login callback that produces the bearer token, and the permitted-host restriction is only inconsistently bypassed (AT:P), so the condition is not fully attacker-controlled. Applications that do not use OIDC callbacks, or that reject connection strings whose authMechanismProperties include ENVIRONMENT (the vendor's documented mitigation), or that have upgraded to 7.9.0, are not exposed. |
| Impact | This is a medium-severity information-disclosure issue (CVSS 4.0 base 5.9, CWE-923 improper restriction of communication channel). The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N) shows a network vector with no privileges and no database account required, but two factors temper real-world risk: AT:P indicates a specific attack requirement (the permitted-host restriction is only inconsistently enforced, so exploitation depends on conditions the attacker does not fully control), and UI:A requires an active user interaction - namely a victim completing the application's OIDC login callback. Impact is confidentiality-only (VC:H, no integrity or availability impact): the leaked asset is a bearer token. Not all signals point the same way. The MongoDB-assigned decision label is 'this_month' (not act_now/emergency), there is no CISA KEV listing, and no EPSS score was supplied, so widespread or automated exploitation is not indicated by the available data. No public exploit reference appears in the input. Crucially, exposure is narrow: only applications using MONGODB-OIDC with OIDC_CALLBACK or OIDC_HUMAN_CALLBACK in driver versions 6.7.0 up to (not including) 7.9.0 are affected, and the attacker must be able to influence the connection configuration the application passes to the driver. Net: a real but conditional credential-leak bug worth patching on a normal cycle, not a drop-everything emergency, for the subset of deployments that use OIDC human/machine callbacks. |
| Exploit ScenarioDerived | An attacker who can influence the connection configuration an application feeds to the MongoDB Node.js driver (for example the connection string or authMechanismProperties such as the token-resource host) points it at a host outside the configured permitted-host set. When a user completes the application's own OIDC login callback, the driver fails to consistently enforce the permitted-host restriction and transmits the resulting bearer token to the attacker-influenced host, disclosing the credential. No public exploit code is identified in the available data, and exploitation requires both configuration influence and a user login action. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Improper restriction of the permitted-host allowlist in the MongoDB Node.js driver (versions 6.7.0 up to but not including 7.9.0) can cause an OIDC bearer token minted by the embedding application's own login callback to be sent to a host outside the configured set of permitted hosts, disclosing that credential. No database account is needed: the party who can influence the connection configuration the application passes to the driver - for example the connection string or authMechanismProperties values - can steer the token to an unintended endpoint, although a victim must still complete the OIDC login callback that produces the token (CVSS 4.0 base 5.9, assessed CVSS 3.1 AV:N/AC:H/PR:N/UI:R, CWE-923). Exposure is limited to applications using MONGODB-OIDC with OIDC_CALLBACK or OIDC_HUMAN_CALLBACK on affected versions; no public exploit code was identified at time of analysis and the issue is not in CISA KEV, but the vendor has published a fixed release and an explicit configuration workaround.
RemediationAI
Upgrade the 'mongodb' Node.js driver to 7.9.0 (released 2026-11-12), which makes MongoClient throw when ENVIRONMENT is combined with OIDC_CALLBACK or OIDC_HUMAN_CALLBACK in any mix of connection string and options; see the release notes and advisory at https://github.com/mongodb/node-mongodb-native/releases/tag/v7.9.0. If upgrading immediately is not possible, the vendor's documented mitigation for applications using OIDC_CALLBACK or OIDC_HUMAN_CALLBACK on affected versions is to refuse connection strings whose authMechanismProperties include ENVIRONMENT - the trade-off is that environment-based OIDC token acquisition is disabled in those deployments, and any legitimate flow relying on ENVIRONMENT must be migrated to a callback-only (or environment-only, without callback) configuration. The mitigation is only complete once untrusted connection strings can no longer inject authMechanismProperties values such as ENVIRONMENT or a redirected TOKEN_RESOURCE; applications that accept connection configuration from unprivileged or external parties should treat that input as security-sensitive until the driver is upgraded. Review whether the fixed 7.9.0 release is compatible with your Node.js runtime and driver-dependent tooling before rollout, since it also changes dropIndexes error handling (only NamespaceNotFound is now swallowed).
Affected VersionsENISA
Affected Packages
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 an instance of CWE-923 (Improper Restriction of Communication Channel to Intended Endpoints) in the MongoDB Node.js driver's MONGODB-OIDC authentication path. Under OIDC, the driver obtains an access token either from the environment (via authMechanismProperties ENVIRONMENT, e.g. a cloud identity provider such as Azure) or from an application-supplied callback (OIDC_CALLBACK / OIDC_HUMAN_CALLBACK, e.g. a browser login flow). The driver maintains a set of hosts it is permitted to contact for token retrieval, but that restriction was not consistently enforced when the two mechanisms were combined: with an ENVIRONMENT value present alongside a callback, the driver could transmit the application-produced bearer token to a host outside the allowlist. Because the token is a reusable credential issued to the embedding application, its disclosure to a third-party endpoint undermines the identity boundary the callback was meant to protect. The fix in 7.9.0 closes the configuration ambiguity at construction time: MongoClient now throws when ENVIRONMENT (from connection string or options) is combined with OIDC_CALLBACK or OIDC_HUMAN_CALLBACK, since callbacks can only be supplied via the options object while ENVIRONMENT can arrive through either channel. The trigger conditions described above are drawn from the vendor release notes and the independent assessment; the CVSS 4.0 vector's AT:P and UI:A metrics reflect that the bypass is only inconsistently achieved and requires the victim to complete the login callback, not a fully attacker-controlled race or timing condition.
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:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable with no account (PR:N), but a conditional permitted-host bypass makes it AC:H and a user must complete the OIDC login (UI:R); only the bearer token is disclosed, so C:H and I/A:N.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
The MongoDB Node.js driver does not consistently enforce its permitted-host restriction during OIDC authentication. A bearer token produced by the embedding application's own login callback may therefore be transmitted to a host outside the configured set of permitted hosts, which may result in unintended disclosure of that credential. No database account is required; the party supplying the connection configuration needs only to influence the settings the application passes to the driver.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
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
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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
EUVD-2026-124555
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB