CVE-2026-107385
Awaiting Analysis Awaiting Analysis - Queue

MariaDB Connector/Node.js SQL Injection via NO_BACKSLASH_ESCAPES

Vulnerability report for CVE-2026-107385, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-08

Last updated on: 2026-10-08

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-08
Last Modified
2026-10-08
Generated
2026-10-09
AI Q&A
2026-10-08
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
mariadb-corporation mariadb-connector-nodejs < 3.2.5
mariadb-corporation mariadb-connector-nodejs >= 3.3.0, < 3.3.4
mariadb-corporation mariadb-connector-nodejs >= 3.4.0, < 3.4.7
mariadb-corporation mariadb-connector-nodejs >= 3.5.0-rc.0, < 3.5.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-107385 is a SQL injection vulnerability in MariaDB Connector/Node.js affecting versions before 3.2.5, 3.3.4, 3.4.7, and 3.5.4. The issue occurs when the session uses NO_BACKSLASH_ESCAPES mode, which the connector fails to handle correctly. The connector always escapes quotes with backslashes, but in this mode, backslashes are treated as ordinary characters. This allows attackers to inject arbitrary SQL by closing string literals prematurely.

Detection Guidance

To detect this vulnerability, check if your MariaDB Connector/Node.js version is below 3.2.5, 3.3.4, 3.4.7, or 3.5.4. Run 'npm list mariadb-connector-nodejs' in your project directory to verify the installed version. If vulnerable, inspect application code for use of Connection.escape() or text-protocol queries with NO_BACKSLASH_ESCAPES enabled.

Impact Analysis

If exploited, this vulnerability could allow attackers to execute arbitrary SQL commands with the application's database privileges. This may lead to unauthorized data access, modification, or deletion. The impact depends on the application's database permissions and the sensitivity of the data stored.

Compliance Impact

This vulnerability could lead to data breaches, violating regulations like GDPR (data protection) and HIPAA (health information privacy). Non-compliance may result in legal penalties, reputational damage, and loss of customer trust. Organizations must ensure proper data protection measures are in place.

Mitigation Strategies

Upgrade MariaDB Connector/Node.js to version 3.2.5, 3.3.4, 3.4.7, or 3.5.4 or later. Alternatively, use execute() or batch() methods which are not affected by this vulnerability. Disable NO_BACKSLASH_ESCAPES mode if enabled in your database sessions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-107385. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart