Hoch

MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

  • Veröffentlicht: 08.10.2026
  • Aktualisiert: 16.10.2026 12:17

Description

With the non-default permitSetMultiParamEntries option enabled, an object passed as a query parameter is expanded into a SET clause, each key becoming a column name. The three code paths implementing that expansion built the backtick-quoted identifier by hand and wrote the key out unescaped, while only the value was escaped.

A key containing a backtick therefore closed the identifier, and the remainder of the key was parsed as SQL. The connector's own identifier escaper (escapeId, which correctly doubles backticks) existed but was not called from any of the three sites. This is an incomplete fix of GitHub issue #252, which corrected escapeId itself in 2023 but left these hand-built call sites unchanged.

Impact

An application that enables permitSetMultiParamEntries and passes an object with attacker-influenced keys into a statement such as conn.query('UPDATE users SET ? WHERE id = ?', [body, id]) allows the caller to write columns the application never intended to expose — a role, balance or password column — and to append arbitrary SQL to the statement, since the injected text is not confined to an assignment.

Exposure requires the option to be enabled: it is off by default, and with it off the object is serialised and escaped as a single string literal, so the key never reaches the SQL grammar. Passing a request body into this API is, however, the ordinary reason to enable the option. An application that enables it is asking for keys to become column names, not for keys to become arbitrary SQL.

Resolution

All three expansion sites now route the key through the identifier escaper, doubling backticks before writing the column name. The feature is unchanged for legitimate keys, including reserved words.

Workarounds

Disable permitSetMultiParamEntries (the default), or validate object keys against an allow-list of column names before passing them to query(), until upgraded.

Credit

Reported by fg0x0.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket mariadb >= 3.2.0, < 3.2.5, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.7, >= 3.5.0-rc.0, < 3.5.4 3.2.5, 3.3.4, 3.4.7, 3.5.4

Verweise

CVSS-Wert 8.1/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Schwäche (CWE)
CWE-89
Plattform
npm
Paket
mariadb
Veröffentlicht
08.10.2026
Aktualisiert
16.10.2026 12:17

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-v6pj-gxxw-phfw - CC BY 4.0

Schwachstellenhistorie: mariadb

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
7
Erste → letzte
08.2026 10.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 4
  • Mittel 3

Veröffentlichungen pro Jahr

  1. 2026: 7
  1. Hoch · 7.4 CVE-2026-107385 < 3.2.5, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.7, >= 3.5.0-rc.0, < 3.5.4 3.2.5, 3.3.4, 3.4.7, 3.5.4
  2. MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries) dieser Eintrag
    Hoch · 8.1 CVE-2026-107384 >= 3.2.0, < 3.2.5, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.7, >= 3.5.0-rc.0, < 3.5.4 3.2.5, 3.3.4, 3.4.7, 3.5.4
  3. Hoch · 7.5 CVE-2026-107383 < 3.2.5, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.7, >= 3.5.0-rc.0, < 3.5.4 3.2.5, 3.3.4, 3.4.7, 3.5.4
  4. Mittel · 6.5 CVE-2026-55855 < 3.2.4, >= 3.3.0, < 3.3.4, >= 3.4.0, < 3.4.6, >= 3.5.0, < 3.5.3 3.2.4, 3.3.4, 3.4.6, 3.5.3
  5. Mittel · 5.9 CVE-2026-55854 < 3.2.4, >= 3.3.0, < 3.3.3, >= 3.4.0, < 3.4.6, >= 3.5.0, < 3.5.3 3.2.4, 3.3.3, 3.4.6, 3.5.3
  6. Hoch · 7.5 CVE-2026-55215 < 3.2.4, >= 3.3.0, < 3.3.3, >= 3.4.0, < 3.4.6, >= 3.5.0, < 3.5.3 3.2.4, 3.3.3, 3.4.6, 3.5.3

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.