Patch Ticker
EnglishEN
Elevated

MongoDB Node.js Driver SRV validation bypass lets attackers redirect database connections

CVE-2026-126837

A database connector can be sent to a wrong server, exposing your data.

CVE
CVE-2026-126837 (opens in a new tab)
Score
CVSS 7.4
First seen

Mitigation

Update the MongoDB Node.js Driver to 7.8.0 or later.

Summary

The MongoDB Node.js Driver does not validate DNS SRV host names correctly for mongodb+srv:// connections. An unauthenticated attacker who can forge or change the DNS SRV response can redirect the connection to a host of their choice. Versions 3.3.3 or later, before 7.8.0, are affected.

Affected when

  • mongodb+srv:// connection string in use (mongodb:// connections are not affected)
  • Version 3.3.3 or later, before 7.8.0

3 other Incidents of this product in the last 30 days

Incidents by product: MongoDB Node.js Driver

Other recent Incidents of MongoDB Node.js Driver

All Incidents of 2026-11-13

Read the write-up · jira.mongodb.org (opens in a new tab)