Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
mikro-orm mikro-orm
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

MikroORM 是一个基于 Node.js 的 TypeScript ORM,采用了数据映射器(Data Mapper)、单元工作(Unit of Work)和身份映射(Identity Map)模式。在 6.6.16 和 7.1.7 版本之前,其共享的 SQL 层会对 orderBy 子句中的字段键进行验证,但在 AbstractSqlPlatform.getOrderByExpression 将其拼接到 ORDER BY 子句之前,并未对排序方向值(direction)进行验证。如果应用程序将攻击者可控的请求

CVSS 6.5 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-84993

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
MikroORM: SQL injection via unvalidated order direction in orderBy
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
mikro-orm mikro-orm < 6.6.16 -

II. Public POCs for CVE-2026-84993

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-84993

登录查看更多情报信息。

Patches & Fixes for CVE-2026-84993 (4)

Other References for CVE-2026-84993 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-84993

No comments yet


Leave a comment