CVE-2026-55215
JSON

7.5high

MariaDB Connector/Node.js: Connector leaks the cleartext password to an MitM despite `ssl: true`

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cqhc-2h57-wpxfBIT-MARIADB-2026-55215BIT-MARIADB-MIN-2026-55215BIT-MYSQL-CLIENT-2026-55215

Description

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to versions 3.3.3, 3.4.6, and 3.5.3, when ssl is enabled without a pinned CA or server certificate, MariaDB Connector/Node.js sends credentials before completing certificate fingerprint validation. In lib/cmd/handshake/auth/handshake.js, a server that selects mysql_clear_password as the initial authentication plugin can receive the password before the post-TLS identity check. In lib/cmd/handshake/authentication.js, an authentication switch can evaluate the previous plugin instead of the requested target plugin, allowing mysql_clear_password to send the credential first. An active man-in-the-middle can present a self-signed certificate, capture the database password, and use it to authenticate directly even though the connector later rejects the server and closes the connection. This issue is fixed in versions 3.3.3, 3.4.6, and 3.5.3.

Affected

Product or packageVersionsReported by
mariadb-corporation mariadb-connector-nodejs< 3.2.4CVE List
mariadb (npm)before 3.2.4, from 3.3.0 before 3.3.3, from 3.4.0 before 3.4.6, from 3.5.0 before 3.5.3GitHub Advisory Database
mariadb (Bitnami)before 3.2.4Bitnami Vulnerability Database
mariadb-min (Bitnami)before 3.2.4Bitnami Vulnerability Database
mysql-client (Bitnami)before 3.2.4Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-295CWE-522

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to versions 3.3.3, 3.4.6, and 3.5.3, when ssl is enabled without a pinned CA or server certificate, MariaDB Connector/Node.js sends credentials before completing certificate fingerprint validation. In lib/cmd/handshake/auth/handshake.js, a server that selects mysql_clear_password as the initial authentication plugin can receive the password before the post-TLS identity check. In lib/cmd/handshake/authentication.js, an authentication switch can evaluate the previous plugin instead of the requested target plugin, allowing mysql_clear_password to send the credential first. An active man-in-the-middle can present a self-signed certificate, capture the database password, and use it to authenticate directly even though the connector later rejects the server and closes the connection. This issue is fixed in versions 3.3.3, 3.4.6, and 3.5.3.

GitHub Advisory Database
Summary

When SSL/TLS is enabled but no CA / server certificate is provided, the connector verifies the server's identity using fingerprint validation. The check is effective, the connection is ultimately rejected when it fails, but it happens after the authentication exchange. As a result, the credentials are sent before validation occurs, so an active man-in-the-middle who presents their own certificate receives the password in the handshake before the connection is aborted.

Impact

The credentials are transmitted to the peer before the server's identity is validated. An on-path attacker (MitM) presenting any certificate can capture the account password, even though the connection then fails the fingerprint check and is closed. The disclosed credentials can subsequently be used to authenticate directly against the server.

  • Attacker requirement: active man-in-the-middle position on the network path
  • Affected configuration: SSL/TLS enabled without a CA / server certificate
Affected versions
  • < 3.2.4
  • 3.3.0 – 3.3.2
  • 3.4.0 – 3.4.5
  • 3.5.0 – 3.5.2
Patches

Fixed in 3.2.4, 3.3.3, 3.4.6, and 3.5.3. Upgrade to one of these (or later) on your branch.

Workarounds

Until you can upgrade, configure certificate verification explicitly, provide the server/CA certificate and use a verifying SSL mode (e.g. VERIFY_CA / VERIFY_FULL).

Reported by haaahaaahiihiiii (no GitHub account).

References

https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-cqhc-2h57-wpxfweb
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/514576a5a1fab3ea8498613e259a0b7a764e7302web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/c47d7275835c78c7eb8186cd23e9d57c045c128bweb
https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/ecd36958e6e3bf0e0fa8389546f50c0ed6dbb2acweb
https://hackerone.com/reports/3777370web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.3web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.6web
https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.3web
https://jira.mariadb.org/browse/CONJS-349web
https://github.com/mariadb-corporation/mariadb-connector-nodejspackage
https://nvd.nist.gov/vuln/detail/CVE-2026-55215web

Sources

SourceRecordLicence
CVE ListCVE-2026-55215 changed 2026-09-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-cqhc-2h57-wpxf changed 2026-09-02CC-BY-4.0
NVDCVE-2026-55215 changed 2026-09-08Public domain
Bitnami Vulnerability DatabaseBIT-MARIADB-2026-55215 changed 2026-09-02Apache-2.0
Bitnami Vulnerability DatabaseBIT-MARIADB-MIN-2026-55215 changed 2026-09-02Apache-2.0
Bitnami Vulnerability DatabaseBIT-MYSQL-CLIENT-2026-55215 changed 2026-09-02Apache-2.0