CVE-2026-34221 — @mikro-orm/core
CVE-2026-34221 is a CWE-1321 vulnerability in @mikro-orm/core. A fix is available for @mikro-orm/core — see the affected versions and patch details below.
MikroORM has Prototype Pollution in Utils.merge
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-34221.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
@mikro-orm/corenpmDescription
A prototype pollution vulnerability exists in the Utils.merge helper used internally by MikroORM when merging object structures.
The function did not prevent special keys such as __proto__, constructor, or prototype, allowing attacker-controlled input to modify the JavaScript object prototype when merged.
Exploitation requires application code to pass untrusted user input into ORM operations that merge object structures, such as entity property assignment or query condition construction.
Prototype pollution may lead to denial of service or unexpected application behavior. In certain scenarios, polluted properties may influence query construction and potentially result in SQL injection depending on application code.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @mikro-orm/core | all versions | 6.6.10npm install @mikro-orm/core@6.6.10 |
| 📦npm | @mikro-orm/core | ≥ 7.0.0-dev.0&&< 7.0.6 | 7.0.6npm install @mikro-orm/core@7.0.6 |
Affected Products
mikroormmikro-ormDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @mikro-orm/core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @mikro-orm/core to 6.6.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-34221 is resolved across your whole dependency graph.
Workarounds
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.
Frequently Asked Questions
Is CVE-2026-34221 in your dependencies?
Find it across npm, including transitive dependencies.