CVE-2026-44680 MikroORM: SQL injection via runtime-controlled identifiers and JSON-path keys
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
5 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| mikro-orm knex(npm) | < 6.6.14; <= 6.6.13 | 6.6.14 | Fixed |
| mikro-orm sql(npm) | < 7.0.14; <= 7.0.13 | 7.0.14 | Fixed |
| mikro-orm | = < 6.6.14; = >= 7.0.0-rc.0, < 7.0.14 | No fix listed | Versions listed |
| mikro-orm knex | = < 6.6.14 | No fix listed | Versions listed |
| mikro-orm sql | = < 7.0.14 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mikro-orm | = >= 7.0.0-rc.0, < 7.0.14 | No fix listed |
| mikro-orm | = < 6.6.14 | No fix listed |
| mikro-orm knex | = < 6.6.14 | No fix listed |
| mikro-orm sql | = < 7.0.14 | No fix listed |
| mikro-orm sql(npm) | <= 7.0.13 | No fix listed |
| mikro-orm knex(npm) | <= 6.6.13 | No fix listed |
| mikro-orm sql(npm) | < 7.0.14 | 7.0.14 |
| mikro-orm knex(npm) | < 6.6.14 | 6.6.14 |
References
- https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-cfw5-68c4-ffqp vendor-advisory
- https://github.com/mikro-orm/mikro-orm/pull/7653 patch
- https://github.com/mikro-orm/mikro-orm/pull/7654 patch
- https://github.com/mikro-orm/mikro-orm/pull/7656 patch
- https://github.com/mikro-orm/mikro-orm/pull/7657 patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product