Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain DNS SRV response forgery position
-
DeliveryReturn crafted SRV record for mongodb+srv target
-
ExploitDriver truncates host name at special character
-
ExecutionConnection redirected to attacker-controlled host
-
PersistDriver validates TLS against redirected name
-
ImpactCredentials 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 2
Executive ViewAI
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.
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
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
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
EUVD-2026-124552
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB