Back to feed
20Track

SQL injection in mysql2 connection value escaping

sidorares mysql2 · CVE-2026-139877 ETK-2026-5970 EUVD-2026-139548 GHSA-F763-MV98-7RV9 GHSA-FX9J-5664-PQX4
0 news outlets0 CERTs and agencies1 research labs

Assessment: Track

SSVC decision points: exploitation poc, automatable no, technical impact total, deployment low.

What is it?

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.

Evidence

Technical advisories1Detailed write-ups from security research teams

Exploitation

  • Exploit code published (not verified by us)
  • Exploited in the wild (confirmed by a source)
  • Listed as known exploited (CISA KEV)
CVSS
7.4
EPSS
0.6%
First seen
1 d ago
Status
confirmed

All sidorares vulnerabilities