Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend untrusted input to ORM merge operation
-
ExploitInject __proto__ or constructor key
-
ExecutionPollute JavaScript prototype chain
-
ImpactTrigger denial of service or unexpected behavior
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A03:2021 - Injection
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires MikroORM application to pass untrusted user input into ORM operations that merge object structures (entity property assignment or query condition construction). Remote unauthenticated attacker can exploit via crafted input; no victim interaction needed. Affects default MikroORM configurations without input sanitization. |
| Impact | Real-world risk assessment requires careful context analysis due to missing CVSS scoring and EPSS data. The vulnerability requires specific preconditions: applications must pass untrusted user input directly into ORM merge operations without prior sanitization. This is not the default usage pattern for most ORMs, which typically validate input through schema definitions and type systems. However, dynamic query builders and flexible update operations may create exposure. The dual impact of denial of service (more likely) and potential SQL injection (scenario-dependent) creates uncertainty. SQL injection would require polluted prototype properties to flow into query construction logic AND bypass parameterization, making it a secondary concern requiring specific code patterns. The GitHub security advisory from project maintainers indicates responsible disclosure and likely patch availability, suggesting lower urgency than actively exploited vulnerabilities. Without CVSS metrics, attack vector and complexity remain unclear, though the requirement for application-specific vulnerable code patterns suggests medium complexity. No CISA KEV listing and no public exploit identified at time of analysis indicate this is not being actively exploited. Priority depends heavily on whether your application passes unsanitized user input to ORM operations-most production applications using TypeScript type safety and validation frameworks have lower exposure. |
| Exploit ScenarioDerived | An attacker submits a malicious user profile update request containing {"__proto__": {"isAdmin": true}} through a REST API endpoint. The application passes this JSON directly to MikroORM's entity update operation without sanitization. The vulnerable Utils.merge function processes the object, polluting the JavaScript Object prototype with isAdmin=true. Subsequently, all objects in the application runtime inherit this property, potentially bypassing authorization checks that test for admin privileges. In a more severe scenario, the attacker pollutes prototype properties used in query construction (e.g., {"__proto__": {"table": "users--"}}), causing malformed SQL queries that either crash the application (denial of service) or, if the ORM fails to properly parameterize the polluted values, enable SQL injection. No public exploit identified at time of analysis, though the attack technique is well-documented in prototype pollution research. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 29, 2026
Prototype pollution in MikroORM's Utils.merge function allows attackers to modify JavaScript object prototypes when applications pass untrusted user input into ORM operations. Affects @mikro-orm/core npm package, enabling denial of service and potentially SQL injection when polluted properties influence query construction. No public exploit identified at time of analysis, though GitHub security advisory published by the project maintainers confirms the vulnerability class (CWE-1321).
RemediationAI
Consult the official GitHub security advisory at https://github.com/mikro-orm/mikro-orm/security/advisories/GHSA-qpfv-44f3-qqx6 for vendor-confirmed patch versions and upgrade guidance. Upstream fix available through the project's GitHub repository, though released patched version number not independently confirmed from provided data. Primary remediation requires upgrading @mikro-orm/core to the patched release specified in the advisory. As an immediate workaround, implement input validation and sanitization before passing user-controlled data to ORM operations, specifically filtering or rejecting objects containing __proto__, constructor, or prototype keys. Use Object.create(null) for user-input objects to prevent prototype chain inheritance, or employ libraries like lodash's merge with prototype pollution protections. Review application code for patterns that dynamically assign user input to entity properties or query conditions without schema validation. The GitHub advisory at https://github.com/advisories/GHSA-qpfv-44f3-qqx6 may contain additional mitigation guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MikroORM is a TypeScript ORM for Node.js supporting multiple SQL databases. The vulnerability resides in the internal Utils.merge helper function, which performs deep object merging for entity property assignment and query condition construction. The function lacks proper filtering of dangerous JavaScript special keys (__proto__, constructor, prototype), implementing the classic prototype pollution pattern (CWE-1321). When untrusted input flows through ORM operations like entity updates or query builders, attackers can inject these special keys to modify the base Object prototype chain. The affected package is pkg:npm/@mikro-orm_core, indicating the core ORM package distributed via npm. Prototype pollution in JavaScript allows modification of properties inherited by all objects in the runtime, creating a cross-cutting attack surface that transcends normal application boundaries.
Know when Prototype Pollution gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (https://github.com/mikro-orm/mikro-orm) · only source for this CVE.
CVSS VectorVendor: https://github.com/mikro-orm/mikro-orm
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 1 npm packages depend on @mikro-orm/core (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 7.0.0-dev.0.
Executive ViewAI
CVE-2026-34221 presents moderate security risk, a prototype pollution vulnerability. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and consider compensating controls in the interim.
Apply vendor patch. If immediate patching is not feasible: (1) Implement network-level access controls to limit exposure; (2) Enable enhanced monitoring and alerting; (3) Apply principle of least privilege.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in MikroORM SQL Injection and Prototype Pollution
View all 2More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-17488
GHSA-qpfv-44f3-qqx6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB