CVE-2026-84993 Details
Description
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.
A vulnerability in MikroORM's SQL layer allows for SQL injection through unvalidated order direction values in 'ORDER BY' clauses. This issue affects MikroORM versions prior to 6.6.16 and 7.1.7. The vulnerability arises because the 'orderBy' direction is not properly validated before being concatenated into the SQL query, enabling attackers to inject raw SQL that could be executed by the database. This flaw is present in the MySQL, MariaDB, and MSSQL platforms, as well as in the SQLite and PostgreSQL drivers, while the MongoDB driver is not affected.
Users can update to MikroORM versions 6.6.16 or 7.1.7, where this vulnerability has been fixed. For those unable to upgrade, it's recommended to validate order direction values application-side before passing them to 'orderBy', using an allow-list or the 'QueryOrder' enum.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 16, 2026CISA-ADP
Assessed Sep 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mikro-orm/mikro-orm/commit/3aba926fd07156f5e1ebf06294fd77ee1215bad5 | [email protected] | Source CodeVendor |
| https://github.com/mikro-orm/mikro-orm/commit/89e5546bf8e10f8465682016a3bdf622ff55d8c5 | [email protected] | Source CodeVendor |
| https://github.com/mikro-orm/mikro-orm/pull/7996 | [email protected] | Issue TrackingVendor |
| https://github.com/mikro-orm/mikro-orm/pull/7997 | [email protected] | Issue TrackingVendor |
| https://github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16 | [email protected] | Release NotesVendor |
| https://github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7 | [email protected] | Release NotesVendor |
| https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-7j79-7q93-6v69 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| MikroORM | <= 6.6.15 (semver) |
CPE
Remediation
| |
| MikroORM SQL | <= 7.1.6 (semver) |
CPE
Remediation
| |
| MikroORM Knex | <= 6.6.15 (semver) |
CPE
Remediation
| |
| MikroORM SQLite | All versions |
CPE
Remediation
| |
| MikroORM PostgreSQL | All versions |
CPE
Remediation
| |
| MikroORM MySQL | All versions |
CPE
Remediation
| |
| MikroORM MariaDB | All versions |
CPE
Remediation
| |
| MikroORM MSSQL | All versions |
CPE
Remediation
| |
| MikroORM libSQL | All versions |
CPE
Remediation
| |
| MikroORM OracleDB | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 16, 2026 | CVE Modified | CISA-ADP |
| Sep 16, 2026 | New CVE Received | [email protected] |
Volerion