Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.1 Node.js & npm GHSA-r3rv-jm3r-62q2 CVE-2026-107385 GHSA-48qf-xh34-q73r CVE-2026-107383

Three MariaDB Connector/Node.js Vulnerabilities: Memory Disclosure and SQL Injection Risks

MariaDB Connector/Node.js versions prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4 contain three separate vulnerabilities: an uninitialized memory disclosure via malformed GeoJSON parameters, a SQL injection affecting sessions with NO_BACKSLASH_ESCAPES enabled, and a SQL injection via object keys when permitSetMultiParamEntries is enabled. Updated versions are available.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

MariaDB Connector/Node.js, the library used by Node.js applications to connect to MariaDB and MySQL databases, has three disclosed vulnerabilities affecting versions prior to 3.2.5, 3.3.4, 3.4.7, and 3.5.4. One vulnerability discloses uninitialized process memory into database values, and two are SQL injection issues that depend on specific session settings or connector options. Fixed versions are available for all three issues.

Three vulnerabilities disclosed in the same connector

Three CVEs were published for MariaDB Connector/Node.js. CVE-2026-107383 (GHSA-48qf-xh34-q73r) is an uninitialized memory disclosure in the GeoJSON Polygon and MultiPolygon binary encoders: when a ring's size is computed from a numeric length before confirming the ring is actually an array, a malformed non-array ring can cause the connector to allocate a buffer that is only partially overwritten, and the remaining uninitialized bytes are sent to the database and persisted as part of the stored value. CVE-2026-107385 (GHSA-r3rv-jm3r-62q2) is a SQL injection in the text-protocol escaping logic, which always prefixes quotes with a backslash and ignores the session's NO_BACKSLASH_ESCAPES mode, including in Connection.escape(). CVE-2026-107384 (GHSA-v6pj-gxxw-phfw) is a SQL injection that occurs when the permitSetMultiParamEntries option is enabled: object keys expanded into a SQL SET clause are not passed through escapeId, so a key containing a backtick can break out of the quoted identifier.

Root causes per issue

For CVE-2026-107383, the binary encoder for GeoJSON rings uses Buffer.allocUnsafe() sized from a numeric length field before validating that the ring value is an array; when it is not, the writing loop skips the data it was expected to fill, leaving uninitialized Node.js heap content in the buffer that execute() or batch() then sends to the database. The text-protocol query() path is not affected by this issue. For CVE-2026-107385, the connector's text-protocol quote-escaping always inserts a backslash before a quote character regardless of the session's SQL mode; when NO_BACKSLASH_ESCAPES is active, that backslash is treated as a literal character by the server rather than an escape character, allowing an attacker-controlled value to terminate the string literal early. execute() and batch(), which use binary protocols, are not affected. For CVE-2026-107384, when permitSetMultiParamEntries is enabled, object keys used to build a SQL SET clause are expanded directly into the query without being passed through escapeId, so a backtick in a key can close the quoted identifier and allow the remainder of the key to be interpreted as SQL syntax. This option is disabled by default, and the serialized-object handling used when it is disabled is not affected.

Potential impact

The memory disclosure issue (CVE-2026-107383) can leak uninitialized heap data into a persisted database value; the description notes this could include other users' content, session material, database credentials, or TLS key material, and that this data may propagate to backups and replicas. Both SQL injection issues (CVE-2026-107385 and CVE-2026-107384) allow an attacker to inject arbitrary SQL with the application's database privileges. For CVE-2026-107385 this requires the NO_BACKSLASH_ESCAPES session mode to be active, which can be set server-wide, through connector initialization options, or via an application-issued SET sql_mode statement. For CVE-2026-107384, exploitation requires the permitSetMultiParamEntries option to be enabled, and can result in unintended columns being updated or additional SQL being appended with the database user's privileges.

Affected and fixed versions

CVE-2026-107383 and CVE-2026-107385 affect MariaDB Connector/Node.js prior to version 3.2.5 (introduced from the start of tracked history), prior to 3.3.4 (introduced in 3.3.0), prior to 3.4.7 (introduced in 3.4.0), and prior to 3.5.4 (introduced in 3.5.0-rc.0). CVE-2026-107384 affects versions from 3.2.0 up to 3.2.5, from 3.3.0 up to 3.3.4, from 3.4.0 up to 3.4.7, and from 3.5.0-rc.0 up to 3.5.4. All three issues are fixed in versions 3.2.5, 3.3.4, 3.4.7, and 3.5.4.

Fixes available

Fixed versions are available for all three vulnerabilities: 3.2.5, 3.3.4, 3.4.7, and 3.5.4. For CVE-2026-107385, applications that do not rely on NO_BACKSLASH_ESCAPES mode are not exposed to that specific issue, but the underlying escaping behavior is only corrected in the fixed versions. For CVE-2026-107384, the vulnerability only applies when the permitSetMultiParamEntries option is explicitly enabled; applications using the default configuration are not affected by this specific issue, though upgrading is still recommended.

Recommended action

Upgrade MariaDB Connector/Node.js to version 3.2.5, 3.3.4, 3.4.7, or 3.5.4, whichever corresponds to your current release line. If GeoJSON Polygon or MultiPolygon values from untrusted input are processed via execute() or batch(), prioritize the update to address CVE-2026-107383. If your deployment uses NO_BACKSLASH_ESCAPES mode, review affected code paths using text-protocol escaping, including Connection.escape(), for CVE-2026-107385. If permitSetMultiParamEntries is enabled in your configuration, treat the update for CVE-2026-107384 as a priority and review object-key handling in SET clause construction.

PatchBriefing score

8.1 / 10 · High

Official CVSS: 8.1

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS 0.0079 (53 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

mariadb ≥ 3.5.0-rc.0 < 3.5.4
vulnerable
≥ 3.2.5
patched
≥ 3.3.4
patched
≥ 3.4.7
patched
≥ 3.5.4
patched
mariadb ≥ 3.5.0-rc.0 < 3.5.4
vulnerable
≥ 3.2.5
patched
≥ 3.3.4
patched
≥ 3.4.7
patched
≥ 3.5.4
patched
mariadb ≥ 3.5.0-rc.0 < 3.5.4
vulnerable
≥ 3.2.5
patched
≥ 3.3.4
patched
≥ 3.4.7
patched
≥ 3.5.4
patched

Reported fixes

Fixed versions are available for all three vulnerabilities: 3.2.5, 3.3.4, 3.4.7, and 3.5.4. For CVE-2026-107385, applications that do not rely on NO_BACKSLASH_ESCAPES mode are not exposed to that specific issue, but the underlying escaping behavior is only corrected in the fixed versions. For CVE-2026-107384, the vulnerability only applies when the permitSetMultiParamEntries option is explicitly enabled; applications using the default configuration are not affected by this specific issue, though upgrading is still recommended.

How this was built

6 source records were collected, matched and used to prepare the report above.

  • OSV.dev database
  • OSV.dev database
  • OSV.dev database
  • NVD (NIST) database
  • NVD (NIST) database
  • NVD (NIST) database
Unified report
Three MariaDB Connector/Node.js Vulnerabilities: Memory Disclosure and SQL Injection Risks
1 article · 6 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email