Vulnerability GHSA-cx2f-j9fh-8g68

Medium Risk
MEDIUM RISK
CVSS Score: 5.9
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 hours ago
October 08, 2026 at 07:42 PM UTC
MariaDB Connector/Node.js: Uncaught exception crashes the client during ed25519 authentication with zero-configuration TLS
3.3.0 - 3.5.3
3.3.0 - 3.5.3

Summary

MariaDB Connector/Node.js: Uncaught exception crashes the client during ed25519 authentication with zero-configuration TLS

Details

Description

On the zero-configuration TLS path, the connector accepts a self-signed server certificate at the TLS level and then validates the server's identity from the fingerprint hash the server appends to the final OK_Packet (Authentication.validateFingerPrint). That validation calls hash() on the authentication plugin in use to obtain the password-derived secret both sides combine with the seed and the certificate fingerprint.

Ed25519PasswordAuth.hash() referenced an identifier seed that was not in scope: it was neither a parameter of the method nor a module-scope binding, existing only as a parameter of the unrelated static encryptPassword(password, seed). Invoking the method therefore threw ReferenceError: seed is not defined.

The throw happens synchronously inside the socket data handler, and no frame between PacketInputStream.onData() and the plugin guards it, so the error escapes as an uncaught exception rather than surfacing as a connection error.

Because the fingerprint hash is what a legitimate MariaDB server sends on this path, ed25519 authentication with zero-configuration TLS never completed successfully — the failure is not limited to a hostile server.

Impact

Denial of service against the client process. Under Node's default uncaughtException behaviour the process exits, so a long-running service is terminated rather than seeing a failed connection attempt. No credential is disclosed and no data is altered; the impact is availability only.

An unauthenticated attacker able to intercept the connection (a MitM presenting a self-signed certificate, or a compromised server) can trigger the crash at will, since the self-signed-certificate path is precisely what such an attacker exercises and the rogue server only has to answer the ed25519 challenge with an OK_Packet carrying a 0x01-prefixed validation hash.

Exposure requires all of the following: a MariaDB server reached over TCP (not a unix socket), ssl: true or an ssl object without rejectUnauthorized: false, a password set, no ssl.ca provided, and client_ed25519 as the negotiated authentication plugin. Other authentication plugins are unaffected, as is any configuration where the server certificate is verified against a provided CA.

Resolution

Ed25519PasswordAuth.hash() now returns the Ed25519 public key derived from the password scalar, which is the value the server combines into the fingerprint hash, and the derivation is covered by unit and integration tests.

Fixed in 3.5.4. The 3.3.x and 3.4.x maintenance branches are not patched; upgrade to 3.5.4 or later.

Workarounds

Provide the server certificate to the client (ssl: { ca: ... }) so standard certificate validation is used instead of fingerprint validation, or set ssl: { rejectUnauthorized: false } to opt into trust mode, or use an authentication plugin other than client_ed25519, until upgraded.

Credit

Reported by fg0x0.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

High Risk
3 hours ago
MariaDB Connector/Node.js: SQL injection in the text protocol when the session uses NO_BACKSLASH_ESCAPES
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-r3rv-jm3r-62q2
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-r3rv-jm3r-62q2
High Risk
3 hours ago
MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)
3.2.0 - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-v6pj-gxxw-phfw
3.2.0 - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-v6pj-gxxw-phfw
High Risk
3 hours ago
MariaDB Connector/Node.js exposes uninitialized process memory through malformed GeoJSON parameters
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-48qf-xh34-q73r
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.3 GHSA-48qf-xh34-q73r
Medium Risk
1 month ago
MariaDB has possible SQL injection in Buffer parameter escaping under big5/gbk/sjis/cp932/gb18030 client charsets
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.2 GHSA-g5xc-5w98-jfvm
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.2 GHSA-g5xc-5w98-jfvm
Medium Risk
1 month ago
MariaDB has Cleartext Transmission of Sensitive Information and Insufficiently Protected Credentials
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.2 GHSA-42r5-vhpq-m858
0.0.1-security - 3.2.3 and 3.3.0 - 3.3.2 and 3.4.0 - 3.4.5 and 3.5.1 - 3.5.2 GHSA-42r5-vhpq-m858
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
3 hours ago
October 08, 2026 at 07:42 PM UTC
Fixed (3.5.4)
1 month ago
September 01, 2026 at 04:38 PM UTC
Last Modified
3 hours ago
October 08, 2026 at 08:00 PM UTC