Skip to main content

MongoDB Node.js Driver CVE-2026-126835

| EUVDEUVD-2026-124555 MEDIUM
Improper Restriction of Communication Channel to Intended Endpoints (CWE-923)
2026-11-12 cna@mongodb.com
5.9
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Influence driver connection configuration
  2. Delivery
    Victim completes OIDC login callback
  3. Exploit
    Driver skips permitted-host enforcement
  4. Execution
    Bearer token sent to unpermitted host
  5. Impact
    Reuse 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.

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

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

Alert me

AnalysisAIv1 – 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

Node.js Driver 6.7.0 <7.9.0

Affected Packages

euvd node_js_driver fix: 7.9.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 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

Vendor (mongodb) PRIMARY 5.9 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
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 12, 2026 - 18:18 EUVD
CVE Published
Nov 12, 2026 - 17:17 cve.org
MEDIUM 5.9

DescriptionCVE.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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
High
official MongoDB Node.js driver, among most-downloaded npm database packages
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub 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.3%
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
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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