CVE-2026-120299: Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-120299, GHSA-rwmx-99mc-qr2x
Summary
An improper input validation flaw in Ash.Type.Keyword allows client input to bypass field-type validation by being incorrectly cast as trusted stored data. Engineering and security teams using the Ash framework should upgrade to resolve the issue.
Who is affected
Deployments utilizing a `:keyword` attribute or argument that accepts client input and declares specific fields are affected, provided the input is sent as a map or JSON string and contains loose-casting field types such as embedded resources, `:function`, or `:term`. This permits attackers to store field values that should otherwise be rejected by input casting, including embedded resources that skip validation.
Exploitability
The vulnerability has a local attack vector with low attack complexity and requires low privileges with no user interaction, though it requires a prerequisite attack vector. The EPSS score is 0.003 and it is not present in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Hex ash package to version 3.38.1 or later.
How to check your project
- Check project dependency declarations in mix.exs for the Hex ash package within the version range from 3.24.0 up to before 3.38.1.
- Inspect the codebase for the usage of `:keyword` attributes or arguments that accept client input and declare fields.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ash |
>= 3.24.0, < 3.38.1 | 3.38.1 | mix deps.update ash |
CVSS 4.0 vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the validation bypass in Ash.Type.Keyword?
Map inputs are improperly converted using try_map_to_keyword/2 which invokes Ash.Type.cast_stored/3 instead of input casting, treating client input as trusted stored data.
Which specific field types are prone to this loose casting behavior?
Field types like embedded resources, `:function`, and `:term` cast stored values more loosely than standard input casting.
Is this vulnerability actively exploited in the wild?
No, CISA KEV lists this as no, indicating there is no documentation of active exploitation.
Original advisory description
References
- ADVISORY https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2x
- WEB https://cna.erlef.org/cves/CVE-2026-120299.html
- WEB https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640
- FIX https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498
- PACKAGE https://hex.pm/packages/ash
Source records: EEF-CVE-2026-120299 (OSV.dev) · EPSS by FIRST, 2026-11-26.