CVE-2026-139877: sidorares mysql2 · SQL Injection
Affects sidorares mysql2Source GCVE Database
Not known to be exploited · CVSS 9.1 Critical : upgrade to 3.25.0 as a priority.
Data as of 30 Nov 2026, 16:31 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 9.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.4 |
- Patch
- Available – fixed in 3.25.0
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade sidorares mysql2 to 3.25.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| sidorares mysql2 | Affected
| Fixed in
|
AI-suggested
Upgrade mysql2 to version 3.25.0 or later where this vulnerability is fixed. No other mitigation or temporary workaround is indicated. Since this is a library vulnerability, applying the official fix is the recommended action.
Description
mysql2 versions before 3.25.0 have an SQL injection vulnerability in the Connection.format() and Connection.escape() functions. This occurs because quotes are always backslash-escaped regardless of the session's SQL mode. When the NO_BACKSLASH_ESCAPES mode is enabled, attackers can craft input through query placeholders to close string literals and append malicious SQL, potentially disclosing or modifying data.
References
- github.com/sidorares/node-mysql2/security/advisories/GHSA-f763-mv98-7rv9 (opens in a new tab)
- github.com/sidorares/node-mysql2/commit/ef0dfa494a4fd30d82fa8ce5af3d2e46049d85ea (opens in a new tab)
- github.com/sidorares/node-mysql2/releases/tag/v3.25.0 (opens in a new tab)
- github.com/sidorares/node-mysql2/blob/v3.24.6/lib/base/connection.js (opens in a new tab)
- vulncheck.com/advisories/mysql2-before-3.25.0-sql-injection-via-placeholder-escaping-under-no-backslash-escapes (opens in a new tab)