Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

### 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 name

Products
mariadb
Affected versions
Not specified
Fixed versions
3.2.5, 3.3.4, 3.4.7, 3.5.4
CVEs
CVE-2026-107384
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 20:02 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 8 Oct 2026, 19:42 UTC

### 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 name

osv:GHSA-v6pj-gxxw-phfw

mariadb

Fixed versions: 3.2.5

mariadb

Fixed versions: 3.3.4

mariadb

Fixed versions: 3.4.7

mariadb

Fixed versions: 3.5.4

Complete source record
{
  "id": "f13043020d001f58fcff8bc5278f3159763ae08d9e364c38c53660fe30a0005c",
  "url": "https://osv.dev/vulnerability/GHSA-v6pj-gxxw-phfw",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)",
    "summary": "### 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 name",
    "evidence": "osv:GHSA-v6pj-gxxw-phfw",
    "products": [
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.2.5",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.3.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.4.7",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "mariadb",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "3.5.4",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "GHSA-v6pj-gxxw-phfw",
      "aliases": [
        "BIT-mariadb-2026-107384",
        "BIT-mariadb-min-2026-107384",
        "BIT-mysql-client-2026-107384",
        "CVE-2026-107384",
        "GHSA-v6pj-gxxw-phfw"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "3.2.0"
                },
                {
                  "fixed": "3.2.5"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:npm/mariadb",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-v6pj-gxxw-phfw/GHSA-v6pj-gxxw-phfw.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "3.3.0"
                },
                {
                  "fixed": "3.3.4"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:npm/mariadb",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-v6pj-gxxw-phfw/GHSA-v6pj-gxxw-phfw.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "3.4.0"
                },
                {
                  "fixed": "3.4.7"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:npm/mariadb",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-v6pj-gxxw-phfw/GHSA-v6pj-gxxw-phfw.json"
          }
        },
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "3.5.0-rc.0"
                },
                {
                  "fixed": "3.5.4"
                }
              ]
            }
          ],
          "package": {
            "name": "mariadb",
            "purl": "pkg:npm/mariadb",
            "ecosystem": "npm"
          },
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-v6pj-gxxw-phfw/GHSA-v6pj-gxxw-phfw.json"
          }
        }
      ],
      "modified": "2026-10-16T09:55:54.224043608Z",
      "provider": "osv",
      "references": [
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-v6pj-gxxw-phfw",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/144b8f4ef29539a9fb4b75d972b9dcdac4088b4e",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/6743b2f4a89b074268b44c650170767f35e1fb5d",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/8eb450972ff0f3826d7d45c071a42240798bc826",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/b9b04ec82a60b2caf2b0c038259ca9aff5d7014a",
        "https://hackerone.com/reports/3889198",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7",
        "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4",
        "https://jira.mariadb.org/browse/CONJS-369"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "severity": "HIGH",
        "github_reviewed": true,
        "nvd_published_at": null,
        "github_reviewed_at": "2026-10-08T19:42:23Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-107384",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 338723,
  "published_at": "2026-10-08T19:42:23+00:00"
}