CVE-2026-84993 json
MikroORM: SQL injection via unvalidated order direction in orderBy
published 3mo ago modified last mo. also EUVD-2026-80875 , GHSA-7j79-7q93-6v69
Unreviewed: the maintainers' own advisory
Published by the maintainers on their GitHub repository mikro-orm/mikro-orm. GitHub has not reviewed it into the GitHub Advisory Database, so the affected packages and versions are the maintainers' word. Read the full advisory on GitHub.
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @mikro-orm/sql 7.1.7
- npm @mikro-orm/knex 6.6.16
- mikro-orm mikroorm 6.6.16, 7.1.7
- github.com/mikro-orm/mikro-orm@3aba926 commit
- github.com/mikro-orm/mikro-orm@89e5546 commit
- github.com/mikro-orm/mikro-orm#7996 pull request
- github.com/mikro-orm/mikro-orm#7997 pull request
- github.com/mikro-orm/mikro-orm/releases/tag/v6.6.16 release
- github.com/mikro-orm/mikro-orm/releases/tag/v7.1.7 release
Is CVE-2026-84993 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last mo.
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @mikro-orm/sql | <=7.1.6 |
7.1.7 |
| npm | @mikro-orm/knex | <=6.6.15 |
6.6.16 |
Affected products
- mikro-orm mikro-orm
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
- 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/security/advisories/GHSA-7j79-7q93-6v69
advisory
- github.com /mikro-orm/mikro-orm/releases/tag/v6.6.16
- github.com /mikro-orm/mikro-orm/releases/tag/v7.1.7
Sources
- CVE List CVE-2026-84993
- NVD CVE-2026-84993
- Maintainer advisory GHSA-7j79-7q93-6v69
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of mikro-orm/mikro-orm published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.