Ash.Type.Keyword casts client input as trusted stored data, bypassing the input validation of its field types
CVE-2026-120299Published 24 Nov 2026, 13:13 UTC
Real-world risk
0.6/ 10Low
Routine
If the vulnerable configuration applies to you: 1.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ashCommon | >= 3.24.0, < 3.38.1 | 3.38.1 |
What to do
Update to a fixed version: 3.38.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 18), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.225 × threat 0.850.574
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 24 Nov 2026 Published
- 2 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-20
References
- https://github.com/ash-project/ash/security/advisories/GHSA-rwmx-99mc-qr2xrelated, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-120299.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-120299related
- https://github.com/ash-project/ash/commit/71b709232454cff3ca23286c2a6b39a486bc8640related
- https://github.com/ash-project/ash/commit/97a0a6061bebc2d4f7ebb40928f94a0ac734e498patch
- CVE-2026-120299 on CVE.org