VDB
Sign up
HIGH

GHSA-qpfv-44f3-qqx6

MikroORM has Prototype Pollution in Utils.merge

Quick fix

GHSA-qpfv-44f3-qqx6 — @mikro-orm/core: upgrade to the fixed version with the command below.

npm install @mikro-orm/core@6.6.10

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@mikro-orm/core
Introduced in: 0Fixed in: 6.6.10
Fixnpm install @mikro-orm/core@6.6.10
npm/@mikro-orm/core
Introduced in: 7.0.0-dev.0Fixed in: 7.0.6
Fixnpm install @mikro-orm/core@7.0.6

References