{"id":"CVE-2026-44680","aliases":["GHSA-cfw5-68c4-ffqp"],"url":"https://o3.security/vulnerability/CVE-2026-44680","summary":"MikroORM: SQL injection via runtime-controlled identifiers and JSON-path keys","details":"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.","published":"2026-05-26T16:49:47.987Z","modified":"2026-08-07T11:31:15.127571759Z","cvss":{"score":7.6,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"@mikro-orm/sql","fixedVersion":"7.0.14"},{"ecosystem":"npm","name":"@mikro-orm/knex","fixedVersion":"6.6.14"}],"fix":{"url":"https://github.com/mikro-orm/mikro-orm/pull/7653","label":"mikro-orm/mikro-orm#7653"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44680.json"},{"type":"ADVISORY","url":"https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-cfw5-68c4-ffqp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44680"},{"type":"FIX","url":"https://github.com/mikro-orm/mikro-orm/pull/7653"},{"type":"FIX","url":"https://github.com/mikro-orm/mikro-orm/pull/7654"},{"type":"FIX","url":"https://github.com/mikro-orm/mikro-orm/pull/7656"},{"type":"FIX","url":"https://github.com/mikro-orm/mikro-orm/pull/7657"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:15.127571759Z"}}