Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Web

CVE-2026-139877 — sidorares mysql2

Critical · CVSS 9.1 First seen November 30, 2026
WebDatabasesVulnerabilities

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Critical · 9.1 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
no
Impact
high on confidentiality and integrity, none on availability
Impact on other systems
none

Vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 7.4 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected and fixed versions

ProductAffected versionsFixed in
sidorares mysql2< 3.25.03.25.0

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • sidorares mysql2

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-139877?

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 NOBACKSLASHESCAPES is enabled, attackers can pass crafted values through ? placeholders in connection.query() to close string literals and append SQL, disclosing or modifying data. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).

How severe is CVE-2026-139877?

CVE-2026-139877 has a CVSS 4.0 base score of 9.1 (critical), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-139877 being exploited?

Not as far as is known: CVE-2026-139877 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.

Which versions are affected by CVE-2026-139877?

sidorares mysql2 < 3.25.0 (fixed in 3.25.0).

How do I fix CVE-2026-139877?

Update to a fixed release: sidorares mysql2 3.25.0.

Timeline & sources

References

Related vulnerabilities & news