SQL Injection in Mikro-Orm
CVE-2026-84993
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.005 (43.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 43rd percentile — 43.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Mikro-Orm — versions < 6.6.16, >= 7.0.0, < 7.1.7
Weakness classification (CWE)
References
- github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69
- github.com/mikro-orm/mikro-orm/pull/7996
- github.com/mikro-orm/mikro-orm/pull/7997
- github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5
- github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5
- github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16
- github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7
Frequently asked questions
- What is CVE-2026-84993?
- CVE-2026-84993 is a medium-severity vulnerability in Mikro-Orm, classified under SQL Injection. CVSS score: 6.5/10. Published 2026-09-16.
- How severe is CVE-2026-84993?
- Medium severity. CVSS v3 base score is 6.5 out of 10.