CVE-2026-126837: Attacker able to redirect a client's database traffic to a host they control via special characters in an SRV target, bypassing the SRV parent-domain guard

Published Nov 12, 2026
·
Updated

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.

Event History

Nov 12, 2026
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed?

Applications using mongodb+srv:// connection strings with the MongoDB Node.js driver are exposed. Applications using mongodb:// connection strings are not affected.

2

What does an attacker need to exploit this issue?

An unauthenticated attacker must be able to forge or modify the DNS SRV response used for host discovery. They can then use special characters in an SRV target to cause the driver to connect outside the expected domain.

3

Does TLS prevent the redirection?

No. The driver verifies the server certificate against the redirected host name, so TLS does not prevent the connection from being redirected to an attacker-controlled host.

4

What could indicate that an application has been affected?

The application may connect to an unintended database host, disclose application data or authentication credentials, or receive altered query results. Review DNS SRV responses and the actual database hosts reached by mongodb+srv:// clients.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203