Live threats

All CVEs / mariadb-corporation

CVE-2026-107385mariadb-corporation mariadb-connector-nodejs

High 7.4 No auth needed

Priority
59
CVSS 3.1
7.4
EPSS
—
Auth required
No
Published
Oct 8, 2026
Updated
Oct 9, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

What happens

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. Prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4, text-protocol escaping always prefixes quotes with a backslash and does not honor the session's NO_BACKSLASH_ESCAPES mode, including in Connection.escape(). When that mode is enabled, the backslash is an ordinary character, so an attacker-controlled placeholder value can close the SQL string literal and inject arbitrary SQL with the application's database privileges. The vulnerable configuration may be enabled server-wide, through connector initialization options, or with an application-issued SET sql_mode; execute() and batch() use binary protocols and are not affected. This issue is fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4.

Original NVD text.

What to do

  1. Apply the vendor's security update for mariadb-connector-nodejs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mariadb < 3.2.5 3.2.5 npm install mariadb@3.2.5
npm mariadb ≥ 3.3.0 < 3.3.4 3.3.4 npm install mariadb@3.3.4
npm mariadb ≥ 3.4.0 < 3.4.7 3.4.7 npm install mariadb@3.4.7
npm mariadb ≥ 3.5.0-rc.0 < 3.5.4 3.5.4 npm install mariadb@3.5.4

Per OSV / GitHub Advisories (GHSA-r3rv-jm3r-62q2). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.