MariaDB Connector/Node.js: Connector leaks the cleartext password to an MitM despite `ssl: true`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Spoofing, Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-295 and CWE-522.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MariaDB | mariadb-connector-nodejs | before 3.2.4 | 3.2.4 | Patch available | CNA |
| — | mariadb (npm) | before 3.2.4 | 3.2.4 | Patch available | GHSA-cqhc-2h57-wpxf |
| — | mariadb (npm) | 3.3.0 to before 3.3.3 | 3.3.3 | Patch available | GHSA-cqhc-2h57-wpxf |
| — | mariadb (npm) | 3.4.0 to before 3.4.6 | 3.4.6 | Patch available | GHSA-cqhc-2h57-wpxf |
| — | mariadb (npm) | 3.5.0 to before 3.5.3 | 3.5.3 | Patch available | GHSA-cqhc-2h57-wpxf |
- mariadb-connector-nodejs VendorMariaDB Affected before 3.2.4 Fixed in 3.2.4 Patch available CNA
- mariadb (npm) Vendor— Affected before 3.2.4 Fixed in 3.2.4 Patch available GHSA-cqhc-2h57-wpxf
- mariadb (npm) Vendor— Affected 3.3.0 to before 3.3.3 Fixed in 3.3.3 Patch available GHSA-cqhc-2h57-wpxf
- mariadb (npm) Vendor— Affected 3.4.0 to before 3.4.6 Fixed in 3.4.6 Patch available GHSA-cqhc-2h57-wpxf
- mariadb (npm) Vendor— Affected 3.5.0 to before 3.5.3 Fixed in 3.5.3 Patch available GHSA-cqhc-2h57-wpxf
Remediation
- Fix · CNA mariadb-connector-nodejs (mariadb-corporation) Fixed in 3.2.4
- Fix · GHSA-cqhc-2h57-wpxf mariadb (npm) Fixed in 3.2.4 Advisory →
- Fix · GHSA-cqhc-2h57-wpxf mariadb (npm) Fixed in 3.3.3 Advisory →
- Fix · GHSA-cqhc-2h57-wpxf mariadb (npm) Fixed in 3.4.6 Advisory →
- Fix · GHSA-cqhc-2h57-wpxf mariadb (npm) Fixed in 3.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55215
- 2026-10-03 Alias added: GHSA-cqhc-2h57-wpxf
References
Other 10
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-cqhc-2h57-wpxf
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/514576a5a1fab3ea8498613e259a0b7a764e7302
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/c47d7275835c78c7eb8186cd23e9d57c045c128b
- https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/ecd36958e6e3bf0e0fa8389546f50c0ed6dbb2ac
- https://hackerone.com/reports/3777370
- 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-349
- https://github.com/mariadb-corporation/mariadb-connector-nodejs
More MariaDB vulnerabilities
- TI-2023-11776 MariaDB v10.5 was discovered to contain a remote code execution (RCE) vulnerability via… CVSS 3.1CRITICAL 9.8
- TI-2016-05707 Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB… CVSS 3.0CRITICAL 9.8
- TI-2022-00687 Infinite loop in BN_mod_sqrt() reachable when parsing certificates CVSS 3.1HIGH 7.5
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
- TI-2014-00188 The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0… CVSS 2.0MEDIUM 6.8
- TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-55215 · CVE Program
- CVE-2026-55215 · NVD
- FIRST EPSS
- GHSA-cqhc-2h57-wpxf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences