Skip to main content

MongoDB Node.js Driver CVE-2026-126837

| EUVDEUVD-2026-124552 CRITICAL
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-12 cna@mongodb.com
9.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Gain DNS SRV response forgery position
  2. Delivery
    Return crafted SRV record for mongodb+srv target
  3. Exploit
    Driver truncates host name at special character
  4. Execution
    Connection redirected to attacker-controlled host
  5. Persist
    Driver validates TLS against redirected name
  6. Impact
    Credentials and application data disclosed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires (1) the application to use a mongodb+srv:// connection string - mongodb:// connections are explicitly stated not affected; and (2) an attacker able to forge, spoof, or modify the DNS SRV response for the connection's domain, i.e. an on-path network position, a controlled/malicious DNS resolver, or a poisoned DNS cache (reflected as AT:P in the vector). The core trigger is that the driver validates each returned host name against the connection-string domain but then rebuilds the connection address from the original name, where certain characters terminate the host name early, allowing redirection outside the expected domain. Limiting factors: only SRV-based (mongodb+srv://) deployments are in scope, the attacker must already control DNS resolution for the target (so this is not exploitable against arbitrary hosts without that position), and no authentication or user interaction is needed (PR:N/UI:N). Notably, TLS certificate verification does NOT limit this, because the driver verifies the certificate against the attacker-chosen redirected host name.

Impact

This is a genuine priority, consistent with the input's act_now decision label. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) describes a network-reachable, unauthenticated flaw that nonetheless carries an attack requirement (AT:P): the attacker must be able to forge or alter the DNS SRV response, i.e. hold an on-path or DNS-control position rather than attack any Internet host at will. Vulnerable-system impact is high for both confidentiality and integrity (VC:H/VI:H) because the described outcome is disclosure of application data and authentication credentials plus altered query results, with no availability impact (VA:N) and no scope change to a separate system (SC:N/SI:N/SA:N). EPSS and SSVC automatable/technical-impact fields were not supplied, and the input shows no KEV listing and no PoC or exploit reference, so exploitation is not known to be active or public. The signals are therefore internally consistent - a serious credential-theft/MITM-class flaw gated behind an attacker who already controls DNS resolution - rather than a high-CVSS-but-low-real-risk item, but the AT:P precondition meaningfully narrows who can carry it out. Note the input CVSS is 4.0 only; no 3.1 vector was provided for cross-check.

Exploit ScenarioDerived

An attacker positioned to forge or tamper with DNS responses (on-path, a malicious resolver, or a poisoned cache) answers a mongodb+srv:// lookup with a crafted SRV record whose host name, because of characters that terminate the name early during connection-address construction, resolves to a server the attacker controls. The MongoDB Node.js driver still presents and validates TLS against the redirected name, so the connection succeeds and the application hands over its data and authentication credentials to the attacker's server. No public exploit identified at time of analysis; the only reference is the vendor Jira ticket NODE-7830.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 12, 2026

The MongoDB Node.js driver's DNS SRV host discovery can redirect mongodb+srv:// connections to an attacker-chosen host outside the connection string's expected domain, exposing application data and authentication credentials and allowing altered query results. The flaw is a validation/use mismatch: returned SRV host names are checked against the domain, but the connection address is rebuilt from the original name, where certain characters end the host name early; TLS does not stop the redirect because the driver verifies the certificate against the redirected host name. Only mongodb+srv:// deployments are affected, an unauthenticated attacker must be able to forge or modify the DNS SRV response (on-path position, malicious resolver, or poisoned cache), and no public exploit was identified at time of analysis; the issue is prioritized act_now.

RemediationAI

Upgrade the MongoDB Node.js driver to the fixed release identified in the vendor advisory at https://jira.mongodb.org/browse/NODE-7830; the provided data does not include the exact fixed version, so confirm it in that advisory before deploying. If upgrading is not immediately possible, switch affected applications to mongodb:// connection strings, which are explicitly not affected, accepting that this removes SRV-based host discovery and related failover behavior. Because exploitation requires the ability to forge or modify the DNS SRV response, reduce that exposure by using trusted resolver infrastructure, enabling DNSSEC where available, and restricting outbound database connections to expected MongoDB hosts; these measures reduce but do not eliminate risk from an on-path attacker. Do not rely on TLS certificate verification as a mitigation, since the driver validates the certificate against the redirected host name.

Affected VersionsENISA

Node.js Driver 3.3.3 <7.8.0

Affected Packages

euvd node_js_driver fix: 7.8.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 issue is rooted in CWE-88, improper neutralization of argument delimiters, applied to host-name parsing during DNS SRV discovery. For a mongodb+srv:// connection string, the Node.js driver validates each host name in the DNS SRV response against the connection string's domain, but then constructs the connection address from the original name; certain characters terminate the host name early, so validation and use disagree and the resulting address can point outside the expected domain. The trigger requires the application to use SRV-based discovery and an attacker able to forge, spoof, or modify the DNS SRV response, such as an on-path network position, a controlled or malicious DNS resolver, or a poisoned DNS cache; the assessed CVSS:3.1 vector reflects this prerequisite as AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, while the vendor CVSS:4.0 score is 9.1 with AT:P. TLS certificate verification is not a limiting factor because the driver verifies the server certificate against the attacker-chosen redirected host name. Applications using mongodb:// connection strings are explicitly not affected. The provided data does not include CPE identifiers or an exact affected version range.

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 9.1 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Network-reachable and unauthenticated (AV:N/PR:N/UI:N) but requires an attacker-held DNS-forgery position, so AC:H; credential/data disclosure and altered query results give C:H/I:H, with no availability impact.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
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
CRITICAL 9.1

DescriptionCVE.org

A validation flaw in the DNS SRV host discovery of the MongoDB Node.js driver may cause the driver to connect to a host outside the expected domain. For a mongodb+srv:// connection string, the driver checks each host name in the DNS SRV response against the domain of the connection string. The driver then builds the connection address from the original name, in which certain characters end the host name early. An unauthenticated party who can forge or change the DNS SRV response may redirect the connection to a host of their choice. TLS does not prevent this, because the driver verifies the server certificate against the redirected host name. This may result in unintended disclosure of application data and authentication credentials, and in altered query results. Applications that use mongodb:// connection strings are not affected.

Executive ViewAI

Why It Matters

CVE-2026-126837 is a critical flaw in the MongoDB Node.js driver that affects applications using mongodb+srv:// connection strings. Attackers who can manipulate DNS responses could redirect database connections to a server of their choosing, potentially exposing sensitive application data and authentication credentials. Leadership should be concerned because this could lead to large-scale data breaches or service disruptions for any business unit relying on MongoDB Atlas or similar SRV-based deployments, and no patch is currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include: enforce DNSSEC or use trusted DNS-over-HTTPS (DoH) resolvers for SRV lookups; restrict network access to known MongoDB endpoints; replace mongodb+srv:// with explicit mongodb:// seed lists; implement allowlisting of expected hostnames in the driver's connection logic; monitor outbound database connections for unexpected destinations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
High
official MongoDB driver for Node.js, very common application database stack
Social Media
2
Sightings
Data Quality
4 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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

References

Advisories & patches

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