StraitOfVuln
Latest / CVE-2026-139877

CVE-2026-139877

HighCVSS 7.4 (v3.1)Received
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-139877
Published / updated
30 Nov 2026, 17:18 UTC · last modified 03 Dec 2026, 15:17 UTC
Severity
HIGH
CVSS score
7.4 · v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N · Attack vector: Network
Affected vendor
sidorares
Affected products
mysql2
Affected versions
mysql2: before 3.25.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
mysql2 3.25.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.78% probability of exploitation in the next 30 days · 57% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
disclosure@vulncheck.com