CVE-2026-139877
JSON

9.1critical

mysql2 before 3.25.0 SQL Injection via Placeholder Escaping under NO_BACKSLASH_ESCAPES

Severity
9.1critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.63% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
sidorares mysql2before 3.25.0CVE List

All scores

VulnCheck9.1critical CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139877 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139877 changed 2026-11-30Public domain