Vulnerability DatabaseGHSA-vrvp-5qx2-7xcm

GHSA-vrvp-5qx2-7xcm: 
JavaScript vulnerability analysis and mitigation

Summary

Conditions using the collection operators $some, $none, $every and $size are compiled to a subquery. Entity filters (@Filter(), e.g. a soft delete or a tenant filter) are not applied inside that subquery, neither to the collection items nor to relations referenced in the operator payload. The same condition written without a collection operator applies them. The $size operator exists only in v7; on v6 the affected operators are $some, $none and $every.

Impact

Rows that an enabled filter is supposed to exclude take part in evaluating the condition. For example, with a tenant filter on Book, em.find(Tag, { books: { $some: { title: 'foo' } } }) returns tags that match only through a book of another tenant, and { books: { $size: 2 } } counts soft-deleted books. This happens with queries written by the application, with no crafted input. The returned entities are still subject to the filters of the queried entity itself, so the exposure is limited to whether a filtered-out related row matches the condition. Applications that let users shape the where condition are more exposed, as the conditions inside the operator can be used to test values of rows hidden by the filters. Not affected:

  • filters on the queried (root) entity,
  • nested conditions without a collection operator, populate and populateWhere.

Affected versions

LinePackageAffected versions
v7@mikro-orm/sql<= 7.2.12
v6@mikro-orm/knex<= 6.6.19

Patches

Fixed in 7.2.13 and 6.6.20.

Workarounds

Repeat the filter condition inside the operator payload, e.g. { books: { $some: { title: 'foo', tenant: tenantId } } }.


Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qjc-mqvq-rch9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-j4pj-2xg4-35f6HIGH7.4
  • JavaScript logoJavaScript
  • @mikro-orm/mariadb
NoYesNov 27, 2026
GHSA-vrvp-5qx2-7xcmMEDIUM6.5
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-9phx-3fcw-32vfLOW3.7
  • JavaScript logoJavaScript
  • saxen
NoYesNov 27, 2026
GHSA-288x-p79m-78v5LOW3.7
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management