CVE-2026-55855
MariaDB Connector/Node.js: Possible SQL injection in Buffer parameter escaping under big5/gbk/sjis/cp932/gb18030 client charsets
Also known as BIT-mariadb-2026-55855, BIT-mariadb-min-2026-55855, BIT-mysql-client-2026-55855, GHSA-g5xc-5w98-jfvm
Mitigation
- Upgrade mariadb to one of 3.2.4, 3.3.4, 3.4.6, 3.5.3 (or later in the same release line).
Who should check
- Projects that depend on npm package mariadb (< 3.2.4)
- Anyone running mariadb-corporation mariadb-connector-nodejs < 3.2.4; >= 3.3.0, < 3.3.3; >= 3.4.0, < 3.4.6; >= 3.5.0, < 3.5.3
Vulnerability facts
- Affected
- mariadb < 3.2.4
- Fixed in
- 3.2.4, 3.3.4, 3.4.6, 3.5.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.69% chance of exploitation in 30 days (percentile 48, 2026-11-26)
- CWE
- CWE-89, CWE-116
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm mariadb | < 3.2.4 | 3.2.4, 3.3.4, 3.4.6, 3.5.3 | osv |
| mariadb-corporation mariadb-connector-nodejs | < 3.2.4; >= 3.3.0, < 3.3.3; >= 3.4.0, < 3.4.6; >= 3.5.0, < 3.5.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-55855. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-55855.md Affected: mariadb < 3.2.4 Fixed in: 3.2.4, 3.3.4, 3.4.6, 3.5.3 Steps: 1. Search this machine and project for mariadb (npm), mariadb-corporation mariadb-connector-nodejs: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/25c6239b68fd909132355c3f8535a5ef32423468
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/26e35f9edb00bcf249627a564e0052fba7b305a2
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/7af8b7b8b7ae5e1a081693ade989f5a80c8e06e3
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/97f183f33b5d4e6767b34ecabdd81fe3294a80a6
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/0148cadba48064d430902678bbc5b4b62dc1c04f
Other
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.4
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.3
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.6
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.3
- https://jira.mariadb.org/browse/CONJS-350
- https://github.com/mariadb-corporation/mariadb-connector-nodejs
FAQ
Is CVE-2026-55855 being exploited?
There is no confirmed exploitation: CVE-2026-55855 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-55855?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-55855?
mariadb < 3.2.4.
Is there a fix for CVE-2026-55855?
Yes. Fixed in 3.2.4, 3.3.4, 3.4.6, 3.5.3. Upgrade mariadb to one of 3.2.4, 3.3.4, 3.4.6, 3.5.3 (or later in the same release line).
How do I check if I'm affected by CVE-2026-55855?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.