EEF-CVE-2026-101028
Ash.count, Ash.exists and Ash.aggregate skip related resources' read policies in filters and sorts
Quick fix
EEF-CVE-2026-101028 — ash: upgrade to the fixed version with the command below.
mix deps.update ashDetails
## Summary
Incorrect Authorization vulnerability in ash-project ash allows an actor to infer data in related records they cannot read via `Ash.count/2`, `Ash.exists/2` and `Ash.aggregate/3`.
`Ash.Actions.Aggregate.run/4` (`lib/ash/actions/aggregate.ex`) applied only the root resource's read policy before running the aggregate query. The read path also applies each related resource's read policy to filter and sort references that cross a relationship, directly (for example `comments.body`) or through an aggregate over one, but the aggregate path skipped that step. A caller whose filter or sort reaches these functions, for example through `Ash.Query.filter_input/2`, an ash_lua script, or an AshAi tool offering count or exists results, can test conditions against related rows hidden from them and recover their existence and attribute values one query at a time. `Ash.read/2` and its page counts are not affected.
This issue affects ash: from 2.6.0 before 3.34.6.
## Configurations
Reachable only when an application passes caller-supplied filters or sorts that cross a relationship into `Ash.count/2`, `Ash.exists/2` or `Ash.aggregate/3` (directly, through ash_lua read operations, or through AshAi count, exists or aggregate result types), and a related resource's read policy is stricter than the root resource's.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/ash-project/ash/security/advisories/GHSA-xj24-8f5c-pp5p[ADVISORY]
- https://cna.erlef.org/cves/CVE-2026-101028.html[WEB]
- https://github.com/ash-project/ash/commit/30eaf1c6e8524527b703e3c4bfeff7967ee0b37c[WEB]
- https://github.com/ash-project/ash/commit/80936187b27ee94f15cd875affd3141b5cb23185[FIX]
- https://hex.pm/packages/ash[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:hex/ash"]}'