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

Critical 9.3 Published Updated

Attackers can execute arbitrary SQL commands via crafted objects in MikroORM, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-34220?

CVE-2026-34220 is a critical SQL injection vulnerability in mikro-orm, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, 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 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-34220?

4 open source packages ship an affected version, including @mikro-orm/core. It affects 1 product.

PackageAffectedFixed in
@mikro-orm/core npmAll versions6.6.10
@mikro-orm/core npmAll versions6.6.10
@mikro-orm/core npmFrom 7.0.0-dev.07.0.6
@mikro-orm/core npmFrom 7.0.0-dev.07.0.6

Products include Mikro-Orm Mikroorm.

How do I fix CVE-2026-34220?

Upgrade @mikro-orm/core to a fixed version for your release line: 6.6.10 or 7.0.6.

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-34220 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-gwhv-j974-6fxm.

Is CVE-2026-34220 in your software?

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

Check your SBOMs for free