Packages / @mikro-orm/core / Security
MikroORM has Prototype Pollution in Utils.merge
Affected releases · @mikro-orm/core
- 7.x7.0.0 – 7.0.5Fixed in 7.0.6
- 6.x6.0.0 – 6.6.9Fixed in 6.6.10
- 5.x and older4.0.0 – 5.9.8No fix, no longer updated
On 7.x, the newest line:
npm install @mikro-orm/core@7.0.6Every release on a timeline
Affected
7.0.0 – 7.0.5
6 releases
Fixed
7.0.6 – 7.2.11
40 releases, latest
Affected
6.0.0 – 6.6.9
82 releases
Fixed
6.6.10 – 6.6.19
10 releases
Affected
5.0.0 – 5.9.8
78 releases
Affected
4.0.0 – 4.5.10
34 releases
What happens
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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.