Intel

AIKIDO-2026-189719

@mikro-orm/core is vulnerable to Prototype Pollution

Prototype PollutionGHSA-93qp-gfm8-3hc7 Published Yesterday

37

Low Risk

This Affects:

JS@mikro-orm/core
5.0.1 - 7.1.10
Fixed in 7.1.11
Are you affected? Scan for Free

TL;DR

Utils.copy() in @mikro-orm/core builds the copy with Object.create() and then assigns each enumerable key onto it. An own __proto__ key, as produced by JSON.parse(), reaches the inherited setter and replaces the copy's prototype instead of being copied. Untrusted JSON reaching copy paths therefore replace the copied object's prototype, bypassing the guards from earlier prototype pollution fixes. The fix skips an own __proto__ key when cloning.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application passes data parsed from untrusted JSON into MikroORM APIs that copy it.

Background info

@mikro-orm/core is vulnerable to Prototype Pollution in versions 5.0.1 - 7.1.10.

How to fix this

Upgrade the @mikro-orm/core library to the patch version.