CVE-2026-126837

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

No configuration.

History

12 Nov 2026, 18:17

Type Values Removed Values Added
CWE CWE-88 CWE-180

12 Nov 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-12 17:17

Updated : 2026-11-13 19:19


NVD link : CVE-2026-126837

Mitre link : CVE-2026-126837

CVE.ORG link : CVE-2026-126837


JSON object : View

Products Affected

No product.

CWE
CWE-180

Incorrect Behavior Order: Validate Before Canonicalize