CVE-2026-126837 Server-side request forgery in Node.js Driver

Critical 9.1 Published Updated

Attackers who forge DNS SRV responses can redirect MongoDB Node.js driver connections to their host, leaking credentials and altering queries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
Yes
Fix
None listed

What is CVE-2026-126837?

CVE-2026-126837 is a critical server-side request forgery vulnerability in MongoDB Node.js Driver, published on 12 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-180

Which versions are affected by CVE-2026-126837?

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

How do I fix CVE-2026-126837?

No fix has been published for CVE-2026-126837 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-126837 being exploited?

There is no known exploitation of CVE-2026-126837 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Is CVE-2026-126837 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free