CVE-2026-107385
HIGH 7.4MariaDB 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.
Severe if exploited (CVSS 7.4), but no known exploitation and low modeled probability. Patch on a normal cadence.
Exploitation likelihood
0.4%chance of exploitation in 30 days · 38th percentile
Impact if exploited
7.4CVSS 3.1 · HIGH
- ConfidentialityNone
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ✓User interaction: No user interaction needed
- ⚠Complexity: Needs a race window or specific setup
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked daily for recent CVEs, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-89: : Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
References and research data (JSON)
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
mariadb npm
pkg:npm/mariadb
SEMVER range- All earlier versions (introduced 0)
- Fixed boundary (excluded): 3.2.5
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-r3rv-jm3r-62q2/GHSA-r3rv-jm3r-62q2.json" } }mariadb npm
pkg:npm/mariadb
SEMVER range- Introduced version (included): 3.3.0
- Fixed boundary (excluded): 3.3.4
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-r3rv-jm3r-62q2/GHSA-r3rv-jm3r-62q2.json" } }mariadb npm
pkg:npm/mariadb
SEMVER range- Introduced version (included): 3.4.0
- Fixed boundary (excluded): 3.4.7
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-r3rv-jm3r-62q2/GHSA-r3rv-jm3r-62q2.json" } }mariadb npm
pkg:npm/mariadb
SEMVER range- Introduced version (included): 3.5.0-rc.0
- Fixed boundary (excluded): 3.5.4
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-r3rv-jm3r-62q2/GHSA-r3rv-jm3r-62q2.json" } }
All CVSS metrics
- HIGH 7.4 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H - HIGH 7.4 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
References
Advisories
- https://osv.dev/vulnerability/GHSA-r3rv-jm3r-62q2 GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-95150 EUVD · EUVD-2026-95150
Technical & other
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-r3rv-jm3r-62q2 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/6995c8cf8e51b2ad055de63dcaa4094eebbef5ce CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/7670d90949307e735c0ae148d80b3776478a599d CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/95886df9fa0cca991e2be339caa6c3979be61553 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/e5a9d732d9574177749488336319b73074072779 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://hackerone.com/reports/3889197 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://jira.mariadb.org/browse/CONJS-368 CVE record · GitHub_M · Updated 2026-10-08T18:38:29.490Z
NVD · CVE-2026-107385 · Updated 2026-10-09T12:17:08.390
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z - https://github.com/mariadb-corporation/mariadb-connector-nodejs GitHub Advisory Database · GHSA-r3rv-jm3r-62q2
GitHub Advisory Database · GHSA-r3rv-jm3r-62q2 · Updated 2026-10-16T09:55:57.878893396Z