@mikro-orm/core is vulnerable to Prototype Pollution
37
Low Risk
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.
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.
@mikro-orm/core is vulnerable to Prototype Pollution in versions 5.0.1 - 7.1.10.
Upgrade the @mikro-orm/core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant