CVE-2026-107384: Mariadb SQL Injection Vulnerability
HIGHCVE-2026-107384 is a HIGH (CVSS 8.1) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Mariadb libraries in the npm ecosystem. The issue involves sql injection through object keys in set expansion (permitsetmultiparamentries). Remediation is available by upgrading affected packages to version 3.2.5, 3.3.4, 3.4.7, 3.5.4.
CVE-2026-107384 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-107384
To remediate this vulnerability, upgrade all affected Mariadb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mariadb@3.2.5
npm install mariadb@3.3.4
npm install mariadb@3.4.7
npm install mariadb@3.5.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mariadb
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-107384, inspect your project dependencies using npm:
npm ls mariadb
Analyze the terminal output to locate any version of Mariadb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.5), your application is affected.
Note: The npm ls mariadb command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Mariadb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-107384 Affected Mariadb Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mariadb
|
npm |
≥ 3.2.0
< 3.2.5
|
3.2.5
|
|
mariadb
|
npm |
≥ 3.3.0
< 3.3.4
|
3.3.4
|
|
mariadb
|
npm |
≥ 3.4.0
< 3.4.7
|
3.4.7
|
|
mariadb
|
npm |
≥ 3.5.0-rc.0
< 3.5.4
|
3.5.4
|
References
Frequently Asked Questions
What is CVE-2026-107384?
Which Mariadb versions are affected?
What version fixes CVE-2026-107384?
Is mariadb affected?
What is the CVSS score of CVE-2026-107384?
What CWE is associated with CVE-2026-107384?
How can I check npm dependencies for CVE-2026-107384?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v6pj-gxxw-phfw",
"modified" : "2026-10-08T19:42:23Z",
"published" : "2026-10-08T19:42:23Z",
"aliases" : [ "CVE-2026-107384" ],
"summary" : "MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)",
"details" : "### Description\nWith 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.\n\nA 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.\n\n### Impact\n\nAn 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.\n\nExposure 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.\n\n### Resolution\nAll 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.\n\n### Workarounds\nDisable permitSetMultiParamEntries (the default), or validate object keys against an allow-list of column names before passing them to query(), until upgraded.\n\n### Credit\nReported by fg0x0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mariadb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "mariadb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0"
}, {
"fixed" : "3.3.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "mariadb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.4.0"
}, {
"fixed" : "3.4.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "mariadb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.5.0-rc.0"
}, {
"fixed" : "3.5.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/security/advisories/GHSA-v6pj-gxxw-phfw"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/144b8f4ef29539a9fb4b75d972b9dcdac4088b4e"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/6743b2f4a89b074268b44c650170767f35e1fb5d"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/8eb450972ff0f3826d7d45c071a42240798bc826"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/b9b04ec82a60b2caf2b0c038259ca9aff5d7014a"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/3889198"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.2.5"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.3.4"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.4.7"
}, {
"type" : "WEB",
"url" : "https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases/tag/3.5.4"
}, {
"type" : "WEB",
"url" : "https://jira.mariadb.org/browse/CONJS-369"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-08T19:42:23Z",
"nvd_published_at" : null
}
}