GHSA-3f6p-5ww8-9rcr
HighSummary
A rogue MySQL server (or a man-in-the-middle) can force mysql2 to send credentials in plaintext by requesting an auth switch to mysql_clear_password. The driver complies without verifying that TLS is active.
Risk Assessment
Credential interception by an attacker on the network could lead to unauthorized access to the database.
Recommendation
Update mysql2 to a patched version and ensure that database connections always use TLS with certificate verification.
Other vulnerabilities in mysql2
Original NVD description (English source)
## Summary A rogue MySQL server (or MITM) can force mysql2 to send credentials in **plaintext** by requesting an auth switch to `mysql_clear_password`. The driver complies without verifying that TLS is active. ## Details `mysql_clear_password` is registered as a default standard plugin in `lib/co

