Vulnerability · Published Mar 31, 2026 · Assigned by GitHub_M
CVE-2026-34220MikroORM is vulnerable to SQL Injection via specially crafted object
Critical 9.8
In plain English
A critical-severity SQL injection in mikro-orm from mikro-orm. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to versions 6.6.10 and 7.0.6, there is a SQL injection vulnerability when specially crafted objects are interpreted as raw SQL query fragments. This issue has been patched in versions 6.6.10 and 7.0.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @mikro-orm/core | 6.6.10 | GHSA-gwhv-j974-6fxm |
| npm | @mikro-orm/core | 7.0.6 | GHSA-gwhv-j974-6fxm |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-gwhv-j974-6fxm x_refsource_CONFIRM