# CVE-2026-126837: Attacker able to redirect a client's database traffic to a host they control via special characters in an SRV target, bypassing the SRV parent-domain guard

- Severity: Critical 9.1 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-11-12T17:00:11.830Z
- Modified: 2026-11-13T19:19:25.070Z
- Weaknesses: CWE-180
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

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

(As written by CVE List.)

## Affected

- MongoDB Node.js Driver: from 3.3.3 before 7.8.0

## Every score

- mongodb: CVSS:4.0 9.1 Critical `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`
- mongodb: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://jira.mongodb.org/browse/NODE-7830>

## Sources

- CVE List: [CVE-2026-126837](https://www.cve.org/CVERecord?id=CVE-2026-126837), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-126837](https://nvd.nist.gov/vuln/detail/CVE-2026-126837), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126837 · Whole record: https://cve.day/CVE-2026-126837.json · Rebuilt by cve.day 2026-11-25T22:59:50.541Z
