CVE-2026-139877: critical vulnerability in sidorares mysql2
mysql2 before 3.25.0 SQL Injection via Placeholder Escaping under NO_BACKSLASH_ESCAPES
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
48Vexday Risk Score
No sign of exploitation. It has a public proof of concept.
ssvc Attendcvss 9.1epss 0.8%
from disclosure to weapon1 day
Published on NVDNov 30
1st PoC+1d
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.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Affected products
sidorares · mysql2public PoCs found — 1
githubgithub.com/Xeyalm/CVE-2026-139877★ 0⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
References
https://github.com/sidorares/node-mysql2/blob/v3.24.6/lib/base/connection.js#L648-L675https://github.com/sidorares/node-mysql2/commit/ef0dfa494a4fd30d82fa8ce5af3d2e46049d85eahttps://github.com/sidorares/node-mysql2/releases/tag/v3.25.0https://github.com/sidorares/node-mysql2/security/advisories/GHSA-f763-mv98-7rv9