CVE-2026-126837

High

Description

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.

SeverityHigh
CVSS7.4
Exploit probability—
ProductNode.js Driver
PublishedNov 12, 2026
First seenNov 12, 2026
Weakness typeCWE-88CWE-88

How to fix

Update
  • MongoDB Node.js Driver7.8.0 or later

Affected products

ProductAffected versionsFixed in
MongoDB Node.js Driver3.3.3 ≤ v < 7.8.07.8.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-126837 · Node.js Driver · Vulnerabilities · Dark Radar