Skip to content
OpenAdvisories
High · 7.6 Public exploit CVE-2026-44680 EUVD-2026-31893GHSA-cfw5-68c4-ffqp

MikroORM: SQL injection via runtime-controlled identifiers and JSON-path keys

Published May 26, 2026 · Updated May 26, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
mikro-orm mikro-orm >= 7.0.0-rc.0, < 7.0.14, < 6.6.14 —
@mikro-orm knex < 6.6.14 —
@mikro-orm sql < 7.0.14 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @mikro-orm/knex < 6.6.14 6.6.14 GHSA-cfw5-68c4-ffqp
npm @mikro-orm/sql < 7.0.14 7.0.14 GHSA-cfw5-68c4-ffqp

References