Skip to main content

MariaDB Connector/Node.js CVE-2026-55215

| EUVDEUVD-2026-67869 HIGH
Improper Certificate Validation (CWE-295)
2026-08-28 https://github.com/mariadb-corporation/mariadb-connector-nodejs GHSA-cqhc-2h57-wpxf
7.5
CVSS 3.1 · Vendor: https://github.com/mariadb-corporation/mariadb-connector-nodejs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain active on-path network position
  2. Delivery
    Intercept TLS handshake, present rogue self-signed certificate
  3. Exploit
    Receive plaintext database password during pre-validation auth exchange
  4. Execution
    Connector rejects connection after fingerprint check fails
  5. Persist
    Authenticate directly to MariaDB server with captured credential
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mariadb-connector-nodejs < 3.2.4

Affected Packages

npm mariadb fix: 3.2.4, 3.3.3, 3.4.6, 3.5.3
euvd mariadb_connector_nodejs fix: 3.2.4

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

Vendor (https://github.com/mariadb-corporation/mariadb-connector-nodejs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

AC:H reflects the mandatory active MitM network position; C:H for full credential disclosure; no integrity or availability impact applies.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/mariadb-corporation/mariadb-connector-nodejs).

CVSS VectorVendor: https://github.com/mariadb-corporation/mariadb-connector-nodejs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
widely used Node.js database driver for MariaDB deployments
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy