CVE-2026-126837MongoDB Node.js Driver
DNS SRV validation flaw in MongoDB Node.js Driver
Critical 9.1 No auth needed
Follow: this CVE · MongoDB · MongoDB Node.js Driver We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Nov 12, 2026
- Updated
- Nov 13, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-180
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
The MongoDB Node.js Driver has a validation flaw in DNS SRV host discovery that may redirect connections to an unauthorized host. An unauthenticated attacker who can forge or modify DNS SRV responses can redirect the connection, potentially resulting in disclosure of application data, authentication credentials, and altered query results. Only affects mongodb+srv:// connection strings.
Show the original NVD text
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.
What to do
No patch data
Update the MongoDB Node.js Driver to the patched version when available. Consider using mongodb:// instead of mongodb+srv:// as a temporary mitigation.
- Apply the vendor's security update for Node.js Driver.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- MongoDB · Node.js Driver
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.