Advisory

GHSA-qpfv-44f3-qqx6

Also known as: CVE-2026-34221

Summary

MikroORM has Prototype Pollution in Utils.merge

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-29 15:44 UTC
Modified
2026-03-31 19:04 UTC

Affected packages and fixes

@mikro-orm/core

npm · All systems

Affected

  • introduced 0, fixed 6.6.10 (semver)

Fixed versions

6.6.10

Fix

@mikro-orm/core

npm · All systems

Affected

  • introduced 7.0.0-dev.0, fixed 7.0.6 (semver)

Fixed versions

7.0.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences