MongoDB Node.js driver DNS SRV flaw redirects connections

high severity · published 2026-11-12

An unauthenticated party who can forge or alter the DNS SRV response for a mongodb+srv:// connection string can redirect the driver's connection to a host of their choice. TLS does not prevent this, and the driver can end up connected outside the expected domain.

Fixed in: 7.8.0

CVE: CVE-2026-126837

Source: NVD

Am I affected?

You are affected if the installed version is older than 7.8.0. Check the version you have and update to 7.8.0 or later. The fixed version is verified against a vendor or advisory source.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 2689 and your operating system.