NuGet
GHSA-473q-m89c-ghf8
MySqlConnector: Account password disclosed to a man-in-the-middle in zero-configuration TLS mode (clear-text password sent before certificate is verified)
- Severity
- Medium
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.6.1
- Weakness
- Information exposure (CWE-200)
- Sources
- OSV.dev and GitHub
Description
With SslMode set to VerifyCA or VerifyFull with no configured CA certificate, an unvalidated TLS connection is treated as secure and a clear-text password can be sent before the certificate is checked. This can occur when relying on the password to validate a self-signed cert, e.g., MariaDB's zero-configuration TLS.
An attacker who can deploy a man-in-the-middle MySQL proxy presenting any self-signed certificate can capture the plaintext database password of a client that:
- uses SslMode = VerifyCA or VerifyFull, and
- does not use the SslCa connection string option, and
- uses a non-empty password.
The attacker completes the TLS handshake with its own cert, requests a clear-text password authentication scheme (mysql_clear_password, or forces the caching_sha2_password/sha256_password clear-text fallback), and receives the password before the fingerprint check rejects the connection, defeating the man-in-the-middle protection VerifyFull is expected to provide.
Workarounds
Provide SslCa with VerifyCA/VerifyFull, use a local/Unix-socket connection, or avoid clear-text authentication.
Affected software
| Software | Affected versions |
|---|---|
MySqlConnectorNuGet · osv:NuGet:MySqlConnector |
|
About MySqlConnector
- Total downloads (NuGet)
- 279,767,104NuGet, 24 Nov 2026
This is the only vulnerability in MySqlConnector in our list.
References
- GitHub Advisory Database https://github.com/advisories/GHSA-473q-m89c-ghf8