Skip to content
Heist/ feed
High

MariaDB Connector/Node.js: SQL injection in the text protocol when the session uses NO_BACKSLASH_ESCAPES

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-107385

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-107385

mariadb-connector-nodejs

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "mariadb-corporation",
    "product": "mariadb-connector-nodejs",
    "versions": [
      {
        "status": "affected",
        "version": "< 3.2.5"
      },
      {
        "status": "affected",
        "version": ">= 3.3.0, < 3.3.4"
      },
      {
        "status": "affected",
        "version": ">= 3.4.0, < 3.4.7"
      },
      {
        "status": "affected",
        "version": ">= 3.5.0-rc.0, < 3.5.4"
      }
    ]
  }
]
Related CVEs
CVE-2026-107385

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#16209 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement