# GHSA-6CG8-FVX8-VVMM: SRV parent-domain check bypass via unvalidated host names returned in SRV records

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-19
- Modified: 2026-11-19

## Tracked as

- [CVE-2026-129938](https://cve.now/CVE-2026-129938.md): MongoDB C# Driver traffic redirection in DNS SRV lookup

## Affected versions

- MongoDB.Driver (NuGet): from 2.5.0, fixed in 3.14.1

## Description

### Summary

With `mongodb+srv://` connection strings, the MongoDB .NET/C# Driver normalizes the seed host name and the host names returned by SRV lookups, but did not require that the normalized name be a single valid host name. A crafted SRV target could therefore pass the SRV parent-domain check while the driver connected to a different host outside the application's domain. TLS does not prevent this, because the server certificate is validated against the host the driver actually connects to, which would belong to the attacker.

### Impact

Applications that use `mongodb+srv://` connection strings (the default for Atlas clusters). Exploitation requires the attacker to control the SRV DNS answer for the cluster's domain. If successful, the application connects to and authenticates with a server controlled by the attacker, potentially exposing credentials and data and allowing attacker-controlled responses. No error is surfaced to the user.

### Patches

Fixed in `MongoDB.Driver` 3.14.1. Host names used with `mongodb+srv://` are now validated after normalization, for both the seed host and the hosts returned by SRV lookups (including periodic re-resolution). Valid DNS names are unaffected.

### Workarounds

Use a standard `mongodb://` seed list instead of `mongodb+srv://`, and ensure the DNS resolvers used by the application are trusted.

### References

[CSHARP-6283](https://jira.mongodb.org/browse/CSHARP-6283) / [CVE-2026-129938](https://www.cve.org/CVERecord?id=CVE-2026-129938):

## References

- https://github.com/mongodb/mongo-csharp-driver/security/advisories/GHSA-6cg8-fvx8-vvmm

Page: https://cve.now/GHSA-6CG8-FVX8-VVMM
