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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Mon, 30 Nov 2026 16:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | mysql2 before 3.25.0 SQL Injection via Placeholder Escaping under NO_BACKSLASH_ESCAPES | |
| First Time appeared |
Sidorares
Sidorares mysql2 |
|
| Weaknesses | CWE-89 | |
| CPEs | cpe:2.3:a:sidorares:mysql2:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Sidorares
Sidorares mysql2 |
|
| References |
|
|
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-11-30T16:20:44.034Z
Reserved: 2026-11-30T15:57:17.731Z
Link: CVE-2026-139877
No data.
Status : Received
Published: 2026-11-30T17:18:52.200
Modified: 2026-11-30T17:18:52.200
Link: CVE-2026-139877
No data.
OpenCVE Enrichment
No data.
Weaknesses