Vulnerability DatabaseGHSA-f5wg-pmm4-pj63

GHSA-f5wg-pmm4-pj63: 
JavaScript vulnerability analysis and mitigation

Summary

The result cache key for em.find() and em.findOne() is computed from the entity, the query options and the where condition. The methods built on them share it: em.findAll(), the rows of em.findAndCount() and the items of em.findByCursor(). Filters defined on the queried entity are merged into where first, so they are part of the key. Filters defined on related entities are applied later, to the joins and to the populate queries, and neither those conditions nor their parameters (em.setFilterParams()) were part of the key. Two requests that issue the same cached query with different filter parameters for a related entity therefore share one cache entry. Whichever request populates the entry, all the others get its rows until the entry expires.

Impact

Applications are affected when all of the following hold:

  • the result cache is used, either per query (cache option) or globally (resultCache.global),
  • a filter whose parameters are set with em.setFilterParams() (a tenant filter is the typical case) is defined on an entity that is joined or populated, or that is the target of a to-one relation of the queried entity,
  • the queried root entity does not carry the same filter. The usual shape is a shared root entity with tenant-scoped children, e.g. em.find(Category, {}, { populate: ['products'], cache: 5000 }) with a tenant filter on Product. Within the TTL of the cache entry, a request for another tenant gets the products of the tenant that populated the cache. Both the select-in and the joined loading strategies are affected. A filter on the target of a to-one relation also decides which rows of the queried entity are returned, so the query does not need a populate hint: with a tenant filter on Author, em.find(Book, {}, { cache: 5000 }) returns the books of the tenant that populated the cache. It takes no crafted input, just the same query issued by two users within the TTL. The exposure is limited to what that one query loads: its relations, and its own rows in the to-one case. A user cannot choose whose rows they get. Not affected:
  • filters defined on the queried entity itself,
  • filter parameters passed inline in the filters option (filters: { tenant: { tenant: 1 } }), as the options are part of the key,
  • the schema option and the row-level security session context (all three are part of the key),
  • em.count(), including the count of em.findAndCount() and the totalCount of em.findByCursor(),
  • named cache keys (cache: ['name', ttl]), which ignore the query on purpose.

Affected versions

LinePackageAffected versions
v7@mikro-orm/core<= 7.2.10
v6@mikro-orm/core<= 6.6.18

Patches

Fixed in 7.2.11 (#8770) and 6.6.19 (#8772). The cache key now includes the filter parameters whenever the query loads relations.

Workarounds

  • Do not use the result cache for queries that load relations with parameterised filters, or
  • use a named cache key that includes the filter parameters, e.g. cache: [`categories-${tenantId}`, ttl].

Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-133867CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133250CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/middie
NoYesNov 21, 2026
CVE-2026-133120CRITICAL9.1
  • JavaScript logoJavaScript
  • @fastify/express
NoYesNov 21, 2026
CVE-2026-133312MEDIUM5.3
  • JavaScript logoJavaScript
  • @fastify/rate-limit
NoYesNov 21, 2026
CVE-2026-133273LOW3.7
  • JavaScript logoJavaScript
  • @fastify/swagger-ui
NoYesNov 21, 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