GHSA-fx9j-5664-pqx4CriticalCVSS 7.4

mysql2 before 3.25.0 contains an sql injection vulnerability in Connection.format() and...

Published
November 30, 2026
Last Modified
November 30, 2026

🔗 CVE IDs covered (1)

📋 Description

mysql2 before 3.25.0 contains an sql injection vulnerability in Connection.format() and Connection.escape() because quotes are always backslash-escaped regardless of session SQL mode. When NO_BACKSLASH_ESCAPES is enabled, attackers can pass crafted values through ? placeholders in connection.query() to close string literals and append SQL, disclosing or modifying data.

🔗 References (7)