CVE-2026-139877

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.

9.1CVSS, Critical ([email protected])
Not listedCISA's exploited list
30 Nov 2026Published

Sources: NVD, OSV, CISA KEV, FIRST EPSS. This product uses data from the NVD API but is not endorsed or certified by the NVD. Last checked 4 Dec 2026.