fix(deps): update dependency @mikro-orm/core to v6.6.10 [security]#808
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
fix(deps): update dependency @mikro-orm/core to v6.6.10 [security]#808renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.3.13→6.6.10Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
MikroORM is vulnerable to SQL Injection via specially crafted object
CVE-2026-34220 / GHSA-gwhv-j974-6fxm
More information
Details
Summary
MikroORM versions <= 6.6.9 and <= 7.0.5 are vulnerable to SQL injection when specially crafted objects are interpreted as raw SQL query fragments.
Impact
If user-controlled input is passed directly to MikroORM query construction APIs, an attacker may inject raw SQL fragments. This can lead to SQL injection depending on the database and query being executed.
Affected usage
The issue occurs when untrusted objects are passed to ORM write APIs such as:
wrap(entity).assign(userInput)followed byem.flush()em.nativeUpdate()em.nativeInsert()em.create()followed byem.flush()Applications that validate input types or enforce strict schema validation before passing data to MikroORM are not affected.
Fix
The vulnerability was caused by duck-typed detection of internal ORM marker properties.
The fix replaces these checks with symbol-based markers that cannot be reproduced by user input.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
MikroORM has Prototype Pollution in Utils.merge
CVE-2026-34221 / GHSA-qpfv-44f3-qqx6
More information
Details
A prototype pollution vulnerability exists in the
Utils.mergehelper used internally by MikroORM when merging object structures.The function did not prevent special keys such as
__proto__,constructor, orprototype, 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:L/SA:LReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
mikro-orm/mikro-orm (@mikro-orm/core)
v6.6.10Compare Source
Bug Fixes
em.refresh()for detached entities (e41b500), closes #7383Utils.merge(06ed5f6)v6.6.9Compare Source
Bug Fixes
toJSONnon-enumerable to prevent data leaks (c895808)migration:upto support read-only filesystems (c8584e8), closes #7232table.bigincrements()producingintinstead ofbigint(5660607), closes #7246v6.6.8Compare Source
Bug Fixes
toPOJOregardless of partial loading hints (c27dbae)mergeDatafor initialized entities (5529308), closes #7205migration:down(dfcc8c6), closes #7210v6.6.7Compare Source
Bug Fixes
Features
onConflictWhereoption (#7181) (9ed5ef5)v6.6.6Compare Source
Bug Fixes
excludeoption on eager properties (cb26a7e)repositoryoption type to fix issues withdefineEntityand cycles (aeb1bb1)v6.6.5Compare Source
Bug Fixes
populatehint won't includeundefinedfor optional relations (fede490)em.create(8caae8f), closes #6894populateoption inCollection.matching()for M:N relations (#7091) (886772a)pivotEntitythat usesmapToPk: true(0ab55fe), closes #7107Features
v6.6.4Compare Source
Bug Fixes
em.refresh(143a4ed), closes #7073orphanRemovalon 1:1 relations when inverse side is a PK (#7081) (ce4bfee)wrap(e).populate()hints on type level (45224ee)v6.6.3Compare Source
Bug Fixes
orm.close()(79cabd7), closes #7041assignon entity references (#7048) (ca5d9b8)em.refresh(#7061) (7dc5d7d)SchemaGeneratorrespectsskipTablesoption when diffing a schema (#7040) (40fa85a)v6.6.2Compare Source
Bug Fixes
BigIntinDatehydration (#7003) (236b429), closes #7002Features
Performance Improvements
Setto deduplicate them by identity (#7010) (a41c498), closes #7009v6.6.1Compare Source
Bug Fixes
inferDefaultValuesoption (98eef5e)fieldNameon index creation (#6979) (44998c0), closes #6978LockMode.NONE(6c2a4b6), closes #6969Performance Improvements
v6.6.0Compare Source
Bug Fixes
null(d0913f1), closes #6966Temporal.Instant(8cca4a8), closes #6953Features
defineEntity()definitions (#6954) (d523f13)rawhelper that supportsQueryBuilderandKnex.QueryBuilder(#6955) (897cc7f), closes #6751 #67826.5.9 (2025-10-23)
Bug Fixes
defineEntityrelation builders (#6922) (3bedcca)em.refresh(3d12a8b), closes #6940defineEntity(a93f2e0)defineEntityrelation property builders (8a03eca)extendstype indefineEntityandEntitySchema(#6936) (589d0f3)6.5.8 (2025-10-13)
Bug Fixes
mapToPk()and remove defaultref: trueindefineEntityhelper (#6919) (f0d4e8e)defineEntity(#6920) (aa7295e), closes /github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14465227onConflictFieldson JSON properties (4eab82e), closes #6900createForeignKeyConstraintproperty option (23e898b), closes #6903Features
defineEntityhelper (#6912) (2d39dd0)6.5.7 (2025-10-06)
Bug Fixes
Opt,Hidden,ConfigandRequiredNullable(#6884) (6ce418d)autoincrementproperties withOpttype indefineEntityhelper (#6910) (e2a8ed4)idproperty overuuidproperty for default PK inference (7a9c834), closes #6865em.transactional(a3941a1), closes #6895Features
Performance Improvements
em.transactional(36bdc43), closes #6905em.transactional(b29e88c), closes #6890em.transactionalwhen it's empty (b7751d5), closes #68906.5.6 (2025-09-25)
Bug Fixes
defineEntityhelper (#6873) (42e7df1), closes /github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14483413em.refreshwill refresh detached entities too (c156e30), closes #6867Features
FileCacheAdapter(#6866) (21d364d)skipTablesandskipColumnsoptions to schema generator (#6870) (5937ab6), closes #53466.5.5 (2025-09-21)
Bug Fixes
IncludeCounttype argument torepo.findByCursor()(34c9630)6.5.4 (2025-09-17)
Bug Fixes
ref()(56e441d), closes #68536.5.3 (2025-09-13)
Bug Fixes
em.findandem.count(ead5074), closes #6823RequiredNullablefrom@mikro-orm/core(#6836) (961ee74)em.transactionalwith composite custom type PK (0b82f43), closes #6825em.refresh()(9a7bbc3), closes #68286.5.2 (2025-09-02)
Bug Fixes
em.assignwithonlyOwnProperties(#6822) (099869f), closes #68136.5.1 (2025-08-27)
indexNameargument to index expression callback (b77c90f)v6.5.9Compare Source
Bug Fixes
defineEntityrelation builders (#6922) (3bedcca)em.refresh(3d12a8b), closes #6940defineEntity(a93f2e0)defineEntityrelation property builders (8a03eca)extendstype indefineEntityandEntitySchema(#6936) (589d0f3)v6.5.8Compare Source
Bug Fixes
mapToPk()and remove defaultref: trueindefineEntityhelper (#6919) (f0d4e8e)defineEntity(#6920) (aa7295e), closes /github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14465227onConflictFieldson JSON properties (4eab82e), closes #6900createForeignKeyConstraintproperty option (23e898b), closes #6903Features
defineEntityhelper (#6912) (2d39dd0)v6.5.7Compare Source
Bug Fixes
Opt,Hidden,ConfigandRequiredNullable(#6884) (6ce418d)autoincrementproperties withOpttype indefineEntityhelper (#6910) (e2a8ed4)idproperty overuuidproperty for default PK inference (7a9c834), closes #6865em.transactional(a3941a1), closes #6895Features
Performance Improvements
em.transactional(36bdc43), closes #6905em.transactional(b29e88c), closes #6890em.transactionalwhen it's empty (b7751d5), closes #6890v6.5.6Compare Source
Bug Fixes
defineEntityhelper (#6873) (42e7df1), closes /github.com/mikro-orm/mikro-orm/discussions/6865#discussioncomment-14483413em.refreshwill refresh detached entities too (c156e30), closes #6867Features
FileCacheAdapter(#6866) (21d364d)skipTablesandskipColumnsoptions to schema generator (#6870) (5937ab6), closes #5346v6.5.5Compare Source
Bug Fixes
IncludeCounttype argument torepo.findByCursor()(34c9630)v6.5.4Compare Source
Bug Fixes
ref()(56e441d), closes #6853Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.