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
7.4
Products
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
Read the write-up · jira.mongodb.org (opens in a new tab)
- Write-up: jira.mongodb.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- KISA notice: KISA 보호나라: MongoDB 제품 보안 업데이트 권고 (opens in a new tab)
- Repository: googlesky/CVE-2026-126837 (opens in a new tab)