Read the docs
TI-2026-58399 Aliases CVE-2026-84993

MikroORM: SQL injection via unvalidated order direction in orderBy

Priority LOW 29CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00506 43rd percentileScored 2026-11-07
Fix Fixed mikro-orm (mikro-orm): 6.6.16, 7.1.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mikro-ormmikro-ormbefore 6.6.16; 7.0.0 to before 7.1.76.6.16, 7.1.7Patch availableCNA
  • mikro-orm Vendormikro-orm Affected before 6.6.16; 7.0.0 to before 7.1.7 Fixed in 6.6.16, 7.1.7 Patch available CNA

Remediation

  • Fix · CNA mikro-orm (mikro-orm) Fixed in 6.6.16, 7.1.7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-84993

References

  • TI-2026-26515 MikroORM is vulnerable to SQL Injection via specially crafted object CVSS 4.0CRITICAL 9.3
  • TI-2026-32576 MikroORM: SQL injection via runtime-controlled identifiers and JSON-path keys CVSS 3.1HIGH 7.6
  • TI-2026-26516 MikroORM has Prototype Pollution in Utils.merge CVSS 4.0HIGH 8.3

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences