Repository navigation
Releases
Releases · mariadb-corporation/mariadb-connector-nodejs
MariaDB Connector/Node.js 3.5.5
3.5.5 (Oct 2026)
Notable changes
- CONJS-373: Each release ships a signed CycloneDX 1.6 software bill of materials, listing the package's dependencies for supply-chain audits
- CONJS-377: Faster queries: client-side parsing of the query and decoding of DATE, DATETIME and ASCII values in text protocol results take less time
- CONJS-382: Faster text protocol queries with large string parameters: a string with nothing to escape is encoded natively, 3x faster at 128 characters and 10x and more from 512
- CONJS-383: Faster execute() on large result sets: binary protocol rows no longer allocate a buffer per row, 40% faster on a 1000-row result set
Issues Fixed
- A pool that fails to create a connection now reports it through the logger when the application registers no
errorlistener; the failure used to be silently dropped by a default listener (#180) - CONJS-371: changeUser() failed with ER_SELF_SIGNED_SHA256 for a caching_sha2_password user after a self-signed TLS handshake, although the connection was already authenticated (report by fg0x0)
- CONJS-378: Pool.escape() returned a backslash-escaped value under NO_BACKSLASH_ESCAPES when every connection of the pool was in use, leaving the value injectable (report by buxuwa)
- CONJS-379: SQL injection through a Buffer parameter under the big5 client charset: the five lead bytes 0xFA-0xFE, single bytes for the server, were not escaped (report by fg0x0)
- CONJS-380: SQL injection through a string parameter or escape() under the big5, gbk, sjis and cp932 client charsets, ordinary characters encoding to sequences the server reads as single bytes (report by fg0x0)
- CONJS-381: A connection configured with a charset the server does not support, such as gb18030 on MariaDB, silently stayed on utf8mb4 while parameters were escaped for the requested charset; the connection is now refused by the server (report by fg0x0)
- CONJS-388: The
metaproperty of a result could not be deleted, which made every Sequelize raw query fail with "Cannot delete property 'meta'" (#234) - CONJS-389: connection.destroy() did not kill the running query on a TLS connection with certificate validation: the kill connection, opened on the server IP, failed hostname verification; the query promise also never settled when that connection could not be opened (#304)
- SqlError lost its constructor shape through a namespace import, so
err instanceof SqlErrorwas false (#356 thanks to GiHoon1123) - CONJS-386: A query issued while the connection was still sending a previous command, such as a large insert or a streamed parameter, could be silently dropped and its promise never settled, including when the connection failed (#358 thanks to GiHoon1123)
- Type definitions: StreamCallback was declared as a value it never exports
- CONJS-385: Type definitions: TypeScript users can now pass bitOneIsBoolean, jsonStrings, fullResult, restrictedAuth, permitConnectionWhenExpired, permitRedirect, charsetNumber, enableKeepAlive and keepAliveInitialDelay, a function or logParam for logger, without a cast; the unused logPackets option and the internal ConnectionInfo.collation are no longer declared; the pool's
errorevent and SqlError.cause are declared
MariaDB Connector/Node.js 3.4.8
3.4.8 (Oct 2026)
Issues Fixed
- CONJS-378: Pool.escape() escaped with backslashes under NO_BACKSLASH_ESCAPES when every connection of the pool was in use (report by buxuwa)
- CONJS-379: Fixed SQL injection in Buffer parameter escaping under big5 client charset: lead bytes 0xFA-0xFE are single bytes for the server (report by fg0x0)
- CONJS-380: Fixed SQL injection in string parameter and escape() escaping under big5, gbk, sjis and cp932 client charsets, the escape being applied before encoding (report by fg0x0)
- CONJS-381: A configured collation is always set with SET NAMES, so that a charset the server does not support (gb18030 on MariaDB) is refused instead of silently ignored (report by fg0x0)
MariaDB Connector/Node.js 3.3.5
3.3.5 (Oct 2026)
Issues Fixed
- CONJS-378: Pool.escape() escaped with backslashes under NO_BACKSLASH_ESCAPES when every connection of the pool was in use (report by buxuwa)
- CONJS-379: Fixed SQL injection in Buffer parameter escaping under big5 client charset: lead bytes 0xFA-0xFE are single bytes for the server (report by fg0x0)
- CONJS-380: Fixed SQL injection in string parameter and escape() escaping under big5, gbk, sjis and cp932 client charsets, the escape being applied before encoding (report by fg0x0)
- CONJS-381: A configured collation is always set with SET NAMES, so that a charset the server does not support (gb18030 on MariaDB) is refused instead of silently ignored (report by fg0x0)
MariaDB Connector/Node.js 3.2.6
3.2.6 (Oct 2026)
Issues Fixed
- CONJS-278: Possible buffer overwrite when sending a query or a LOCAL INFILE bigger than 16M: the send buffer was reused before node.js had written it to the socket
- CONJS-378: Pool.escape() escaped with backslashes under NO_BACKSLASH_ESCAPES when every connection of the pool was in use (report by buxuwa)
- CONJS-379: Fixed SQL injection in Buffer parameter escaping under big5 client charset: lead bytes 0xFA-0xFE are single bytes for the server (report by fg0x0)
- CONJS-380: Fixed SQL injection in string parameter and escape() escaping under big5, gbk, sjis and cp932 client charsets, the escape being applied before encoding (report by fg0x0)
- CONJS-381: A configured collation is always set with SET NAMES, so that a charset the server does not support (gb18030 on MariaDB) is refused instead of silently ignored (report by fg0x0)
MariaDB Connector/Node.js 3.5.4
3.5.4 (Jul 2026)
Notable changes
- CONJS-355: Avoid flat-cloning the connection options for every command, relying on a prototype-chain merge instead (#353 thanks to erulabs)
- CONJS-357: Add JavaScript SAST (CodeQL + eslint-plugin-security) to CI
- CONJS-365: Enable standard TLS certificate identity validation under Deno
- CONJS-366: New option
maxAllowedColumns(default 65535) bounding the column count announced by the server, a rogue server being otherwise able to have the client allocate metadata for a result-set that will never complete (report by fg0x0)
Issues Fixed
- CONJS-329: An exception thrown by a callback was reported to that same callback as a database error, instead of propagating like it does from any other node-style callback (report by Assen Totin)
- CONJS-356: Corrected ed25519 authentication with zero-configuration SSL
- CONJS-358: Refuse multi-part packet (> 16MB) reassembly before authentication completes, a rogue server being otherwise able to exhaust client memory before any credential is even validated
- CONJS-359: Corrected the default
maxAllowedPacketvalue when the option is not set - CONJS-360:
batch()ignored theinsertIdAsNumber/supportBigNumbers/bigNumberStringsoptions for insertId - CONJS-361: The connection stopped sending commands after a command ending on the last packet of a network chunk: a prepared statement was never executed, without error nor timeout (report by Assen Totin)
- CONJS-362: Limit the parsec authentication PBKDF2 iteration factor and move the key derivation off the event loop, a rogue server being otherwise able to freeze the whole process for minutes (report by fg0x0)
- CONJS-363: typeCast accessors returned corrupted values with prepared statements
- CONJS-364:
Types/TypeNumbersenums threw at runtime (#347, contribution by BrianDouglasIE) - CONJS-367: Uninitialized process memory leaked to server via malformed GeoJSON Polygon parameter (report by fg0x0)
- CONJS-368: Fixed SQL injection in text protocol when session uses NO_BACKSLASH_ESCAPES (report by fg0x0)
- CONJS-369: Fixed SQL injection through object keys in SET expansion when using
permitSetMultiParamEntries(report by fg0x0)
MariaDB Connector/Node.js 3.4.7
3.4.7 (Jul 2026)
Notable changes
- CONJS-357: Add JavaScript SAST (CodeQL + eslint-plugin-security) to CI
Issues Fixed
- CONJS-358: Refuse multi-part packet (> 16MB) reassembly before authentication completes, a rogue server being otherwise able to exhaust client memory before any credential is even validated
- CONJS-363: typeCast accessors returned corrupted values with prepared statements
- CONJS-367: Uninitialized process memory leaked to server via malformed GeoJSON Polygon parameter (report by fg0x0)
- CONJS-368: Fixed SQL injection in text protocol when session uses NO_BACKSLASH_ESCAPES (report by fg0x0)
- CONJS-369: Fixed SQL injection through object keys in SET expansion when using
permitSetMultiParamEntries(report by fg0x0) - Escape the server-supplied filename before building the LOCAL INFILE validation regular expression
MariaDB Connector/Node.js 3.3.4
3.3.4 (Jul 2026)
Notable changes
- CONJS-357: Add JavaScript SAST (CodeQL + eslint-plugin-security) to CI
Issues Fixed
- CONJS-358: Refuse multi-part packet (> 16MB) reassembly before authentication completes, a rogue server being otherwise able to exhaust client memory before any credential is even validated
- CONJS-363: typeCast accessors returned corrupted values with prepared statements
- CONJS-367: Uninitialized process memory leaked to server via malformed GeoJSON Polygon parameter (report by fg0x0)
- CONJS-368: Fixed SQL injection in text protocol when session uses NO_BACKSLASH_ESCAPES (report by fg0x0)
- CONJS-369: Fixed SQL injection through object keys in SET expansion when using
permitSetMultiParamEntries(report by fg0x0) - Escape the server-supplied filename before building the LOCAL INFILE validation regular expression
MariaDB Connector/Node.js 3.2.5
3.2.5 (Jul 2026)
Notable changes
- CONJS-357: Add JavaScript SAST (CodeQL + eslint-plugin-security) to CI
Issues Fixed
- CONJS-358: Refuse multi-part packet (> 16MB) reassembly before authentication completes, a rogue server being otherwise able to exhaust client memory before any credential is even validated
- CONJS-363: typeCast accessors returned corrupted values with prepared statements
- CONJS-367: Uninitialized process memory leaked to server via malformed GeoJSON Polygon parameter (report by fg0x0)
- CONJS-368: Fixed SQL injection in text protocol when session uses NO_BACKSLASH_ESCAPES (report by fg0x0)
- CONJS-369: Fixed SQL injection through object keys in SET expansion when using
permitSetMultiParamEntries(report by fg0x0) - Escape the server-supplied filename before building the LOCAL INFILE validation regular expression
MariaDB Connector/Node.js 3.5.3
3.5.3 (Jun1 2026)
Notable changes
- Minimum supported Node.js version is now 20 (was 18; Node 18 went EOL in April 2025)
- CONJS-346: Add
RowsWithMeta<T>andWithMeta<T>helper types for typingquery()/execute()result shapes —RowsWithMeta<T>for the default rows-array-with-metashape,WithMeta<T>for themetaAsArray: truetuple form (types-only, no runtime change)
Issues Fixed
- CONJS-354: Reject a server-initiated LOAD DATA LOCAL INFILE request when
permitLocalInfileis disabled (report by tharavel) - CONJS-353: PAM (dialog) authentication now requires a secure connection (TLS or a local unix socket), since it transmits the password in clear text (report by fg0x0)
- CONJS-351: Use constant-time comparison when validating the server certificate fingerprint token, preventing a timing side-channel that could leak the token to a man-in-the-middle
- CONJS-350: Fixed possible SQL injection in Buffer parameter escaping under big5/gbk/sjis/cp932/gb18030 client charset (report by fg0x0)
- CONJS-344: Restore dual ESM/CJS support after the 3.5 ESM migration (#346):
- TypeScript types now compile under
moduleResolution: "Node16" / "NodeNext" / "Bundler"— fixes TS2846 / TS2834 reported in 3.5.1 and 3.5.2 - Ship paired
.d.ctsdeclarations for therequirecondition - Ship a real CJS bundle in
dist/sorequire('mariadb')works on Node 20+ without--experimental-require-moduleorExperimentalWarning - Restore the default ESM export, so
import mariadb from 'mariadb'works again (matches 3.4.x behavior)
- TypeScript types now compile under
MariaDB Connector/Node.js 3.4.6
3.4.6 (Jun 2026)
Issues Fixed
- CONJS-331: Corrected parsec authentication plugin handling
- CONJS-350: Fixed possible SQL injection in Buffer parameter escaping under big5/gbk/sjis/cp932/gb18030 client charset (report by fg0x0)
- CONJS-349: Fixed cleartext password disclosure to a man-in-the-middle when relying on certificate fingerprint validation (self-signed trust mode)
- CONJS-351: Use constant-time comparison when validating the server certificate fingerprint token, preventing a timing side-channel that could leak the token to a man-in-the-middle
- CONJS-353: PAM (dialog) authentication now requires a secure connection (TLS or a local unix socket), since it transmits the password in clear text (report by fg0x0)
- CONJS-354: Reject a server-initiated LOAD DATA LOCAL INFILE request when
permitLocalInfileis disabled (report by tharavel) - Refuse sending the password in clear (
mysql_clear_password) over an unencrypted connection