Vulnerabilities in pkg:npm/@mikro-orm/core
PACKAGECVE-2026-34221 is a HIGH mikroorm has prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @mikro orm/core libraries in the npm ecosystem. The issue involves mikroorm has prototype pollution in utils.merge. Remediation is available by upgrading affected packages to version 6.6.10, 7.0.6.
pkg:npm/@mikro-orm/core
Vulnerability advisories affecting package pkg:npm/@mikro-orm/core. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qpfv-44f3-qqx6 | CVE-2026-34221 | HIGH | MikroORM has Prototype Pollution in Utils.merge |
| GHSA-gwhv-j974-6fxm | CVE-2026-34220 | CRITICAL | MikroORM is vulnerable to SQL Injection via specially crafted object |
CVE-2026-34221 at a Glance
How to Fix CVE-2026-34221
To remediate this vulnerability, upgrade all affected @mikro orm/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @mikro-orm/core@6.6.10
npm install @mikro-orm/core@7.0.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @mikro-orm/core
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-34221, inspect your project dependencies using npm:
npm ls @mikro-orm/core
Analyze the terminal output to locate any version of @mikro orm/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.6.10), your application is affected.
Note: The npm ls @mikro-orm/core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @mikro orm/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-34221 Affected @mikro orm/core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@mikro-orm/core
|
npm |
< 6.6.10
|
6.6.10
|
|
@mikro-orm/core
|
npm |
≥ 7.0.0-dev.0
< 7.0.6
|
7.0.6
|
References
Frequently Asked Questions
What is CVE-2026-34221?
Which @mikro orm/core versions are affected?
What version fixes CVE-2026-34221?
Is @mikro-orm/core affected?
What CWE is associated with CVE-2026-34221?
How can I check npm dependencies for CVE-2026-34221?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qpfv-44f3-qqx6",
"modified" : "2026-03-31T18:55:10Z",
"published" : "2026-03-29T15:44:16Z",
"aliases" : [ "CVE-2026-34221" ],
"summary" : "MikroORM has Prototype Pollution in Utils.merge",
"details" : "A prototype pollution vulnerability exists in the `Utils.merge` helper used internally by MikroORM when merging object structures.\n\nThe function did not prevent special keys such as `__proto__`, `constructor`, or `prototype`, allowing attacker-controlled input to modify the JavaScript object prototype when merged.\n\nExploitation requires application code to pass untrusted user input into ORM operations that merge object structures, such as entity property assignment or query condition construction.\n\nPrototype 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:L/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@mikro-orm/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.6.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@mikro-orm/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-dev.0"
}, {
"fixed" : "7.0.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-qpfv-44f3-qqx6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34221"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mikro-orm/mikro-orm"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-29T15:44:16Z",
"nvd_published_at" : "2026-03-31T16:16:32Z"
}
}