CVE-2026-107385 json
MariaDB Connector/Node.js: SQL injection in the text protocol when the session uses NO_BACKSLASH_ESCAPES
published 2026-10-08 31 d ago modified 2026-10-16 23 d ago also BIT-mariadb-2026-107385 , BIT-mariadb-min-2026-107385 , BIT-mysql-client-2026-107385 , EUVD-2026-95150 , GHSA-r3rv-jm3r-62q2
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mariadb 3.2.5, 3.3.4, 3.4.7, 3.5.4
- bitnami mariadb 3.2.5, 3.3.4, 3.4.7, 3.5.4
- bitnami mariadb-min 3.2.5, 3.3.4, 3.4.7, 3.5.4
- bitnami mysql-client 3.2.5, 3.3.4, 3.4.7, 3.5.4
- mariadb mariadb 3.2.5, 3.3.4, 3.4.7, 3.5.4
- github.com/mariadb-corporation/mariadb-connector-nodejs@6995c8c commit
- github.com/mariadb-corporation/mariadb-connector-nodejs@7670d90 commit
- github.com/mariadb-corporation/mariadb-connector-nodejs@95886df commit
- github.com/mariadb-corporation/mariadb-connector-nodejs@e5a9d73 commit
- github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/… release
- github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/… release
- github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/… release
- github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/… release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-107385 updated cvss 8.1
mariadb: MariaDB Connector/Node.js: SQL injection via improper query escaping in NO_BACKSLASH_ESCAPES mode
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 30 d ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | 3.1 | 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mariadb | <3.2.5 >=3.3.0, <3.3.4 >=3.4.0, <3.4.7 >=3.5.0-rc.0, <3.5.4 |
3.2.5 3.3.4 3.4.7 3.5.4 |
| bitnami | mariadb | <3.2.5 >=3.3.0, <3.3.4 >=3.4.0, <3.4.7 >=3.5.0, <3.5.4 |
3.2.5 3.3.4 3.4.7 3.5.4 |
| bitnami | mariadb-min | <3.2.5 >=3.3.0, <3.3.4 >=3.4.0, <3.4.7 >=3.5.0, <3.5.4 |
3.2.5 3.3.4 3.4.7 3.5.4 |
| bitnami | mysql-client | <3.2.5 >=3.3.0, <3.3.4 >=3.4.0, <3.4.7 >=3.5.0, <3.5.4 |
3.2.5 3.3.4 3.4.7 3.5.4 |
Affected products
- mariadb-corporation mariadb-connector-nodejs
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/commit/6995c8cf8e51b2ad055de63dcaa4094eebbef5ce
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/commit/7670d90949307e735c0ae148d80b3776478a599d
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/commit/95886df9fa0cca991e2be339caa6c3979be61553
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/commit/e5a9d732d9574177749488336319b73074072779
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-r3rv-jm3r-62q2
web
-
hackerone.com
/reports/3889197
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4
web
-
jira.mariadb.org
/browse/CONJS-368
web
-
github.com
/mariadb-corporation/mariadb-connector-nodejs
package
-
nvd.nist.gov
/vuln/detail/CVE-2026-107385
web
Sources
- CVE List CVE-2026-107385
- GitHub Advisory GHSA-r3rv-jm3r-62q2
- NVD CVE-2026-107385
- OSV BIT-mariadb-2026-107385
- OSV BIT-mariadb-min-2026-107385
- OSV BIT-mysql-client-2026-107385
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.