{"id":"CVE-2026-44680","published":"2026-05-26T16:49:47Z","modified":"2026-05-26T17:40:52Z","title":"MikroORM: SQL injection via runtime-controlled identifiers and JSON-path keys","vendor":"mikro-orm","product":"mikro-orm","tier":"tail","description":{"text":"MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to @mikro-orm/knex 6.6.14 and @mikro-orm/sql 7.0.14, MikroORM's identifier-quoting helper (Platform.quoteIdentifier and the postgres/mssql overrides) and its JSON-path emitters (Platform.getSearchJsonPropertyKey, quoteJsonKey) did not properly escape characters that delimit the SQL identifier or string-literal context they emit into. When application code passes attacker-influenced strings to public ORM APIs that expect an identifier or a JSON-property filter, an attacker can break out of the quoted context and inject arbitrary SQL. This vulnerability is fixed in @mikro-orm/knex 6.6.14 and @mikro-orm/sql 7.0.14.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0145,"percentile":0.74054,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-cfw5-68c4-ffqp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mikro-orm/mikro-orm/pull/7653","tags":["x_refsource_MISC"]},{"url":"https://github.com/mikro-orm/mikro-orm/pull/7654","tags":["x_refsource_MISC"]},{"url":"https://github.com/mikro-orm/mikro-orm/pull/7656","tags":["x_refsource_MISC"]},{"url":"https://github.com/mikro-orm/mikro-orm/pull/7657","tags":["x_refsource_MISC"]}],"priority":{"score":25.1,"factors":[{"name":"EPSS percentile","points":14.81},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.32}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-05-29"},"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-20","earliestUrl":"https://github.com/CerberusMrXi/CVE-2026-44680-MikroORM-SQL-Injection-Exploit-Framework","repos":[{"name":"CerberusMrXi/CVE-2026-44680-MikroORM-SQL-Injection-Exploit-Framework","url":"https://github.com/CerberusMrXi/CVE-2026-44680-MikroORM-SQL-Injection-Exploit-Framework","stars":1,"created":"2026-07-20"}]},"first":{"date":"2026-05-29","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52600"},"provenance":"source"},"vendorSlug":"mikro-orm","affectedVersions":[{"vendor":"mikro-orm","product":"mikro-orm","versions":[">= 7.0.0-rc.0, < 7.0.14","< 6.6.14"]},{"vendor":"@mikro-orm","product":"knex","versions":["< 6.6.14"]},{"vendor":"@mikro-orm","product":"sql","versions":["< 7.0.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T17:40:31.124194Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@mikro-orm/sql","vulnerableRanges":["<7.0.14"],"patched":["7.0.14"],"from":["GHSA-cfw5-68c4-ffqp"],"provenance":"source"},{"ecosystem":"npm","package":"@mikro-orm/knex","vulnerableRanges":["<6.6.14"],"patched":["6.6.14"],"from":["GHSA-cfw5-68c4-ffqp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-31893","exploited":false,"provenance":"source"},"exploits":[{"id":52600,"url":"https://www.exploit-db.com/exploits/52600","title":"MikroORM 7.0.13 - SQL Injection (SQLi)","date":"2026-05-29","verified":false,"provenance":"source"}]}