Threat Feed

CVE-2026-139877: sidorares mysql2 · SQL injection

Exploitation: Public exploit · CVSS 9.1 Critical · Unauthenticated · Published 2026-11-30

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.

Fix

Upgrade to 3.25.0.

Vendor advisory

Affected versions

ProductVulnerableFixed in
mysql20 before 3.25.03.25.0

Seen in 3 sources