@mikro-orm/core is vulnerable to Prototype Pollution
65
Medium Risk
The EntityLoader.mergeNestedPopulate() method in the core package uses populate hints without validating their property names. When an application forwards untrusted options into a query, a populate hint using a reserved name such as __proto__ with a nested children array triggers unsafe mutation of the global Object.prototype. This corrupts the prototype process-wide, causing denial of service and cross-request or cross-tenant logic corruption. The fix rejects reserved property names and uses own-property checks via Object.hasOwn when traversing populate hints and active filters.
You are affected if you are using a version that falls within the vulnerable range and your application forwards untrusted options into entity population.
@mikro-orm/core is vulnerable to Prototype Pollution in versions 4.0.4 - 7.1.11.
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