SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.3% · 10th percentile CWE-20

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorLocal
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
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
## Summary 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. ## Impact A client that can set a `:keyword` attribute or argument stores field values that the field type's input casting would reject, such as an embedded resource that skipped its create action and validations. ## Configurations Reachable when a `:keyword` attribute or argument that accepts client input declares `fields`, the client sends it as a map (or a JSON string), and one of the field types casts stored values more loosely than input, such as an embedded resource, `:function` or `:term`.

References

Source records: EEF-CVE-2026-120299 (OSV.dev) · EPSS by FIRST, 2026-11-26.