MariaDB Connector/Node.js: SQL injection in the text protocol when the session uses NO_BACKSLASH_ESCAPES
Summary
| CVE | CVE-2026-107385 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-08 19:17:01 UTC |
| Updated | 2026-10-08 20:25:00 UTC |
| Description | MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4, text-protocol escaping always prefixes quotes with a backslash and does not honor the session's NO_BACKSLASH_ESCAPES mode, including in Connection.escape(). When that mode is enabled, the backslash is an ordinary character, so an attacker-controlled placeholder value can close the SQL string literal and inject arbitrary SQL with the application's database privileges. The vulnerable configuration may be enabled server-wide, through connector initialization options, or with an application-issued SET sql_mode; execute() and batch() use binary protocols and are not affected. This issue is fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4. |
Risk And Classification
Primary CVSS: v3.1 7.4 HIGH from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Problem Types: CWE-89 | CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.4 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.4 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Mariadb-corporation | Mariadb-connector-nodejs | affected < 3.2.5 | Not specified |
| CNA | Mariadb-corporation | Mariadb-connector-nodejs | affected >= 3.3.0, < 3.3.4 | Not specified |
| CNA | Mariadb-corporation | Mariadb-connector-nodejs | affected >= 3.4.0, < 3.4.7 | Not specified |
| CNA | Mariadb-corporation | Mariadb-connector-nodejs | affected >= 3.5.0-rc.0, < 3.5.4 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisor... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/commit/e5a9d732d... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/commit/95886df9f... | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/commit/7670d9094... | [email protected] | github.com | |
| jira.mariadb.org/browse/CONJS-368 | [email protected] | jira.mariadb.org | |
| hackerone.com/reports/3889197 | [email protected] | hackerone.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4 | [email protected] | github.com | |
| github.com/mariadb-corporation/mariadb-connector-nodejs/commit/6995c8cf8... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.