mysql2 is vulnerable to Insufficiently Protected Credentials
75
High Risk
The mysql2 driver registers mysql_clear_password as a default authentication plugin that returns the account password as a plaintext buffer. A rogue or man-in-the-middle MySQL server can send an authentication-switch request selecting mysql_clear_password, and the driver complies without requiring that the connection be encrypted. On unencrypted connections the client transmits the password in cleartext, letting the malicious endpoint capture credentials. The fix disables the cleartext plugin by default and requires explicit opt-in through the enableCleartextPlugin option or a custom auth plugin.
You are affected if you are using a version that falls within the vulnerable range and connect without TLS to an untrusted or user-controlled MySQL server.
mysql2 is vulnerable to Insufficiently Protected Credentials in versions 3.0.0 - 3.21.1.
Upgrade the mysql2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant