Technical impact
A flaw in the MongoDB Node.js Driver’s DNS SRV host discovery allows an attacker to redirect a client’s database traffic to a host they control, bypassing the domain guard. The driver validates each host name in the SRV response only against the domain of the connection string and then reconstructs the connection address using the original host name. Certain characters can prematurely end the host name, enabling an unauthenticated attacker who can forge or modify the DNS SRV response to redirect the connection to an arbitrary host. Because TLS verification is performed against the redirected host name, encryption does not prevent this manipulation, leading to unintended disclosure of application data and credentials and to altered query results. The weakness is identified as CWE‑180.
Affected Systems
The issue affects the MongoDB Node.js Driver for all released versions that accept "mongodb+srv://" connection strings. Applications that use the standard "mongodb://" connection strings are not impacted, and the problem is tied specifically to the driver’s handling of SRV-based URLs rather than to the underlying database server. The affected vendor is MongoDB, and the product is the Node.js Driver; no specific version range is provided in the CNA data.
Risk and Exploitability
The vulnerability carries a CVSS score of 9.1, indicating a high severity assessment. However, the EPSS probability is reported as less than 1%, suggesting that the likelihood of active exploitation is currently very low. The vulnerability is not listed in CISA’s KEV catalog. Because the attack requires an attacker capable of altering DNS SRV responses, the primary vector is a compromised or malicious DNS server or a spoofed DNS response, and no authentication is required on the client side. TLS does not mitigate the issue because hostname verification is performed after the redirect. Overall, the risk is high in environments with untrusted DNS, but the opportunity for exploitation is limited by the need to compromise DNS infrastructure.