CVE-2026-139877: Vulnerability in Sidorares Mysql2

Critical. 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.

CWE-89

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-fx9j-5664-pqx4
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-89
Published
30 Nov 2026
Last change
4 Dec 2026

Affected products

Affected versions and the first fixed release

  • Sidorares Mysql2 Before 3.25.0. Fixed in 3.25.0
  • Mysql2 Before 3.25.0. Fixed in 3.25.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related