CVE-2026-55855
Received Received - Intake

SQL Injection in MariaDB Connector/Node.js

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

Publication date: 2026-08-28

Last updated on: 2026-08-28

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.4, 3.3.3, 3.4.6, and 3.5.3, MariaDB Connector/Node.js permits SQL injection when attacker-controlled Buffer parameters are escaped client-side under the big5, gbk, sjis, cp932, or gb18030 client character sets. PacketOutputStream.writeBufferEscape in lib/io/packet-output-stream.js escaped bytes without the charset-aware getMbRecognizer logic in lib/misc/charset-mb.js. The server SQL lexer runs my_ismbchar before escape processing, so an attacker-controlled lead byte can consume the inserted 0x5C backslash as a multibyte trail byte and leave the following 0x27 quote unescaped, terminating the string literal and allowing arbitrary SQL. The default utf8mb4 character set and parameters sent through the execute binary prepared-statement path are not affected. Successful exploitation can expose or modify data available to the database account. This issue is fixed in versions 3.2.4, 3.3.3, 3.4.6, and 3.5.3.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-28
Last Modified
2026-08-28
Generated
2026-08-29
AI Q&A
2026-08-29
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
mariadb mariadb_connector_node.js 3.2.4
mariadb mariadb_connector_node.js 3.3.3
mariadb mariadb_connector_node.js 3.4.6
mariadb mariadb_connector_node.js 3.5.3

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.
CWE-116 The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

MariaDB Connector/Node.js before versions 3.2.4, 3.3.3, 3.4.6, and 3.5.3 allows SQL injection when attacker-controlled Buffer parameters are escaped client-side using certain character sets like big5, gbk, sjis, cp932, or gb18030. The issue occurs because the escaping logic does not properly handle multibyte characters, allowing an attacker to bypass SQL escaping and inject malicious queries.

Detection Guidance

Detection requires checking the MariaDB Connector/Node.js version in use. Run 'npm list mariadb-connector-nodejs' or check package.json for versions below 3.2.4, 3.3.3, 3.4.6, or 3.5.3. Affected systems use specific client character sets (big5, gbk, sjis, cp932, gb18030) with Buffer parameters.

Impact Analysis

This vulnerability can expose or modify data accessible to the database account. Attackers could potentially read sensitive information, alter database records, or perform unauthorized actions depending on the database permissions. The impact depends on the database account's privileges and the application's use of the connector.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating compliance requirements such as GDPR (data protection) or HIPAA (health information privacy). Organizations using affected versions may face legal penalties, reputational damage, or audit failures if exploited.

Mitigation Strategies

Upgrade MariaDB Connector/Node.js to versions 3.2.4, 3.3.3, 3.4.6, or 3.5.3 or later. Avoid using vulnerable character sets (big5, gbk, sjis, cp932, gb18030) for user-controlled inputs. Use utf8mb4 character set and execute binary prepared-statement path as workarounds.

Chat Assistant

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

EPSS Chart