CVE-2026-139877
validatedZero produced an exploit or a check.GHSA-f763-mv98-7rv9 ↗EUVD-2026-139548 ↗
description
mysql2 versions through 3.24.6 can mishandle values supplied to text-protocol query APIs, allowing attacker-controlled input to alter SQL statements. Exposure requires the MySQL session to use NO_BACKSLASH_ESCAPES and affected client-side escaping paths such as connection.query().
mitigation
Upgrade npm mysql2 to version 3.25.0 or later. Until upgraded, disable NO_BACKSLASH_ESCAPES for affected sessions or use prepared-statement execution instead of the affected text-protocol query paths.
fixed in 3.25.0
outcome
Contextual check: a technique exists and was validated, but no deterministic check could cover this one.
source signals
Public signals that triggered or updated the pipeline. These are inputs for the deltas above.
- 2026-11-30 16:20Zcve_org: trigger signal, started the run
- 2026-12-01 13:04ZXeyalm/CVE-2026-139877
this entry in the feed
GET /api/v1/feed/CVE-2026-139877
{ "etk_id": "ETK-2026-5970", "cve_id": "CVE-2026-139877", "display_id": "CVE-2026-139877", "ghsa_id": "GHSA-f763-mv98-7rv9", "euvd_id": "EUVD-2026-139548", "status": "published", "anchor_state": "anchored", "title": "SQL injection in sidorares mysql2 query escaping", "summary": "mysql2 versions through 3.24.6 can mishandle values supplied to text-protocol query APIs, allowing attacker-controlled input to alter SQL statements. Exposure requires the MySQL session to use NO_BACKSLASH_ESCAPES and affected client-side escaping paths such as connection.query().", "mitigation": "Upgrade npm mysql2 to version 3.25.0 or later. Until upgraded, disable NO_BACKSLASH_ESCAPES for affected sessions or use prepared-statement execution instead of the affected text-protocol query paths.", "vendor": "sidorares", "product": "mysql2", "affected": [ { "affected_notes": [], "affected_ranges": [ "<= 3.24.6" ], "ecosystem": "npm", "fixed_versions": [ "3.25.0" ], "package_name": "mysql2", "purl": "pkg:npm/mysql2" } ], "cwes": [ 89 ], "cvss_score": 9.1, "cvss_src": "cna_vendor", "cvss_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", "epss_score": 0.0063, "epss_percentile": 0.5135, "epss_asof": "2026-12-01", "automation": "contextual", "check": true, "check_confidence_basis": "assessed", "exploit": false, "pipeline_minutes": 8.64162915, "t0_at": "2026-11-30T16:20:44.034000+00:00", "signals": { "check": { "at": "2026-12-01T13:24:52.998238+00:00", "days": 0.8778815305324074, "is_lower_bound": false, "measured_at": "2026-11-30T16:20:44.034000+00:00", "url": null }, "public_poc": { "at": "2026-12-01T10:08:12+00:00", "days": 0.7412959027777778, "is_lower_bound": false, "measured_at": "2026-11-30T16:20:44.034000+00:00", "url": "https://github.com/Xeyalm/CVE-2026-139877" }, "trigger_signal": { "at": "2026-11-30T16:20:44.034000+00:00", "days": 0, "is_lower_bound": false, "measured_at": "2026-11-30T16:20:44.034000+00:00", "url": "https://www.cve.org/CVERecord?id=CVE-2026-139877" } } }
published 2026-11-30 16:37Z
last change 2026-12-02 11:19Z
Need the technical details behind an entry?
Every entry here shows what we attempted and when. The technical details, the generated exploit that fired it and the evidence behind the verdict are not public. Tell us about your use case and we’ll get back to you about extended API access.