CVE-2026-84993 MikroORM: SQL injection via unvalidated order direction in orderBy

Medium 6.5 Published Updated

Attackers can inject SQL via unvalidated order direction in MikroORM queries, allowing blind data extraction from the database.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-84993?

CVE-2026-84993 is a medium-severity SQL injection vulnerability in mikro-orm, published on 16 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-84993?

How do I fix CVE-2026-84993?

No fix has been published for CVE-2026-84993 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-84993 being exploited?

There is no known exploitation of CVE-2026-84993 in the wild and no public exploit code.

Sources

Also known as GHSA-7j79-7q93-6v69.

Is CVE-2026-84993 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free