CVE-2026-107382: MariaDB Connector/Node.js Uncaught Exception Crashes Client During ed25519 Authentication
Summary
CVE-2026-107382: 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 O... Affects mariadb versions >= 3.3.0, < 3.5.4. Fixed in 3.5.4. How to fix ↓
Also tracked for
- mysql-client · Bitnami
- mariadb-min · Bitnami
- mariadb · Bitnami
The same CVE-2026-107382 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
MariaDB Connector/Node.js is a library that allows Node.js applications to connect to MariaDB databases. It supports various authentication methods and provides features like zero-configuration TLS for secure connections. However, a vulnerability has been identified in the ed25519 authentication method when using zero-configuration TLS, which can lead to client crashes under certain conditions.
Vulnerability Detail
The vulnerability arises from a ReferenceError in the Ed25519PasswordAuth.hash() method, where a variable 'seed' is referenced but not defined in the method's scope. This error occurs during the socket data handling process, causing an uncaught exception that crashes the client application. The impact is a denial of service, as the client process terminates unexpectedly, affecting availability without disclosing credentials or altering data. An attacker can exploit this by intercepting the connection and presenting a self-signed certificate, leading to a crash when the client attempts to authenticate.
How To Fix
Latest published version: 3.5.4 as of 23 Oct 2026
npm install mariadb@3.5.4
The newest release already contains this fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, you can provide the server certificate to the client by configuring SSL options in your connection settings. Use the following code snippet:
const mariadb = require('mariadb');
const pool = mariadb.createPool({
host: 'your-host',
user: 'your-user',
password: 'your-password',
ssl: { ca: 'path/to/your/server-cert.pem' }
});
Alternatively, you can set 'rejectUnauthorized' to false:
const pool = mariadb.createPool({
host: 'your-host',
user: 'your-user',
password: 'your-password',
ssl: { rejectUnauthorized: false }
});
Conclusion
In summary, CVE-2026-107382 affects the MariaDB Connector/Node.js, leading to client crashes during ed25519 authentication with zero-configuration TLS. The issue can be resolved by upgrading to version 3.5.4 or later, and temporary workarounds are available to mitigate the impact until an upgrade can be performed.
See every vulnerability recorded for mariadb →
FAQ
The vulnerability is a ReferenceError in the Ed25519PasswordAuth.hash() method, leading to a client crash during authentication.
An attacker can exploit this vulnerability by intercepting the connection and presenting a self-signed certificate, causing the client to crash.
The primary consequence is a denial of service, where the client process terminates unexpectedly, affecting application availability.
No, the vulnerability does not disclose credentials or alter data; it only affects the availability of the client application.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
References
Related vulnerabilities
Recent vulnerabilities recorded for mariadb.