Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain active on-path network position
-
DeliveryIntercept TLS handshake, present rogue self-signed certificate
-
ExploitReceive plaintext database password during pre-validation auth exchange
-
ExecutionConnector rejects connection after fingerprint check fails
-
PersistAuthenticate directly to MariaDB server with captured credential
-
ImpactExfiltrate or manipulate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Two specific conditions must both be true for exploitation to succeed: the Node.js application must use the mariadb npm connector with SSL enabled (ssl: true or equivalent) but without providing an explicit CA certificate or server certificate - the precise configuration that triggers fingerprint-only validation; and the attacker must hold an active man-in-the-middle network position on the path between the application server and the MariaDB server. Passive network observers cannot exploit this flaw; active interception and certificate substitution are required. Applications using VERIFY_CA or VERIFY_FULL SSL modes with an explicit CA certificate are not affected because these modes enforce validation before credential exchange. Applications with SSL disabled are also not affected by this specific flaw. No authentication on the attacker's part is required against either the application or the database server prior to the attack. |
| Impact | The reported CVSS 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) overstates exploitability: AC:L does not reflect the prerequisite of an active man-in-the-middle network position, which requires ARP spoofing, DNS hijacking, rogue wireless access point control, or compromised routing infrastructure. An AC:H scoring yielding approximately 5.9 is more representative of real-world conditions. Confidentiality impact is genuinely high - full database password disclosure - and the captured credential directly enables subsequent authenticated access to the MariaDB server, compounding actual harm. No CISA KEV entry exists, no EPSS data was provided in source intelligence, and no public POC has been released. The configuration scope is a significant limiting factor: only deployments using ssl: true without an explicit CA or server certificate are affected; VERIFY_CA and VERIFY_FULL configurations are not vulnerable. The 'Microsoft' tag in the source data appears to be a misclassification with no bearing on this vulnerability. |
| Exploit ScenarioDerived | An attacker with an active man-in-the-middle position between a Node.js application and its MariaDB server - achieved via ARP spoofing on a shared LAN, a rogue access point, or compromised network infrastructure - intercepts the TLS handshake and presents a self-signed certificate. The connector proceeds with the authentication exchange, transmitting the plaintext database password to the attacker before the fingerprint check fires and closes the connection. The attacker then uses the captured credential to connect directly to the MariaDB server, gaining full database access. No public proof-of-concept has been released, but the attack requires only standard network interception tooling and awareness of the sequencing flaw. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Credential disclosure in the MariaDB Connector for Node.js (npm: mariadb) exposes plaintext database passwords to active network attackers when SSL/TLS is configured without a CA or server certificate. Fingerprint-based server identity validation is sequenced after the authentication exchange, so a man-in-the-middle presenting any certificate receives the password before the connection is ultimately rejected and closed. Affected branches span all releases below 3.2.4, 3.3.3, 3.4.6, and 3.5.3; no CISA KEV entry or public proof-of-concept exists at time of analysis, though the flaw is structurally exploitable by any on-path attacker against the specific misconfiguration.
RemediationAI
Upgrade the mariadb npm package to the patched version for your active branch: 3.2.4, 3.3.3, 3.4.6, or 3.5.3. Release artifacts are published at https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.3, /3.4.6, and /3.5.3. For teams unable to upgrade immediately, the vendor-endorsed workaround is to supply an explicit CA or server certificate and configure a verifying SSL mode (VERIFY_CA or VERIFY_FULL); this forces certificate validation to occur before any credential is transmitted, closing the attack window entirely. Disabling SSL (ssl: false) also prevents credential interception via this flaw but removes transport encryption entirely - only acceptable in fully network-isolated environments and not recommended as a general mitigation. The underlying fix is confirmed in commits 514576a5 and c47d7275 in the mariadb-corporation/mariadb-connector-nodejs repository.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the official MariaDB Connector for Node.js (pkg:npm/mariadb), the JavaScript database driver used to connect Node.js applications to MariaDB servers. The vulnerability is rooted in CWE-295 (Improper Certificate Validation) - specifically a sequencing defect in the TLS handshake logic. When ssl: true is set without an explicit CA or server certificate, the connector falls back to fingerprint-based server identity verification. However, as confirmed by the published commit diffs (514576a, c47d727), the fingerprint rejection check resided in authentication.js and was evaluated only after the MariaDB authentication plugin (handshake.js) had already transmitted the password. The fix relocates the self-signed certificate rejection guard to earlier in the handshake flow - specifically before any plugin credential transmission - making the order-of-operations flaw the precise root cause.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AC:H reflects the mandatory active MitM network position; C:H for full credential disclosure; no integrity or availability impact applies.
Primary rating from Vendor (https://github.com/mariadb-corporation/mariadb-connector-nodejs).
CVSS VectorVendor: https://github.com/mariadb-corporation/mariadb-connector-nodejs
DescriptionCVE.org
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).
Blast Radius
ecosystem impact- 4 npm packages depend on mariadb (3 direct, 1 indirect)
Ecosystem-wide dependent count for version 3.3.0.
Technical POC Analysis
CWE-295 (Improper Certificate Validation) - specifically a check-ordering / sequencing defect: the gate that refuses to send a cleartext password to a server whose identity has not been validated ran…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
MariaDB Connector for Node.js contains a credential disclosure vulnerability that exposes database passwords to network attackers when SSL/TLS certificate validation is improperly configured. Any Node.js application using affected versions of this library with this misconfiguration faces potential database compromise and unauthorized data access. Urgent patching and configuration remediation are required to prevent credential exposure and associated breach risks.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-67869
GHSA-cqhc-2h57-wpxf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB