Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
- State
- Published
- Severity
- 2.1 Low
- Published
- Nov 24, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 24, 2026
Description
Improper Input Validation vulnerability in ash-project ash allows an attacker to bypass the input validation of the field types of a :keyword attribute or argument.
Ash.Type.Keyword.cast_input/2 in lib/ash/type/keyword.ex converts a map input to a keyword list in try_map_to_keyword/2, which casts each declared field with Ash.Type.cast_stored/3. That function is meant for trusted values read back from the data layer, so client input skips the cast_input/2 of each field type. apply_constraints/2 casts the result again with cast_input/2, but most types accept a value of their own type unchanged. An embedded resource field is built without its create action, so its validations and changes do not run and its non-public attributes can be set. A :function field accepts a capture string such as &Mod.fun/1, and a :term field decodes Erlang external term format.
This issue affects ash: from 3.24.0 before 3.38.1.
| Product | Versions |
|---|---|
| ash ash-project | 3.24.0 to before 3.38.1 Affected |
| ash ash-project | 71b709232454cff3ca23286c2a6b39a486bc8640 to before 97a0a6061bebc2d4f7ebb40928f94a0ac734e498 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.1 Low | EEF |
Weaknesses
- CWE-20 Improper Input Validation
References
- Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field typesVendor AdvisoryRelated
- EEF CNA record for CVE-2026-120299Related
- OSV record EEF-CVE-2026-120299Related
- Introducing commit 71b7092 in ash-project/ashRelated
- Fix commit 97a0a60 in ash-project/ashPatch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.