Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify typed-controller route with constrained argument
-
DeliverySend crafted HTTP request with out-of-allowlist value
-
Exploitcast_input/3 succeeds; apply_constraints/3 never called
-
ExecutionConstraint silently bypassed
-
PersistHandler receives unauthorized argument value
-
ImpactRole, status, or state-machine boundary violated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires: (1) ash_typescript versions 0.15.0-0.17.x deployed with at least one AshTypescript.TypedController typed-controller route; (2) one or more route arguments bearing constraints that gate security-sensitive logic - specifically one_of for role or status allowlists, numeric min/max bounds that enforce business rules, max_length restrictions, or match regex patterns used for access control; and (3) HTTP reachability to the affected endpoint. The vulnerability is scoped exclusively to typed-controller routes handled by AshTypescript.TypedController.RequestHandler - standard Ash action pipelines that traverse the full Ash validation stack (cast_input/3 followed by apply_constraints/3) are not affected. Applications where argument constraints serve only cosmetic or client-experience purposes, with no security decisions depending on constraint enforcement, carry negligible material risk beyond accepting out-of-range values. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N, score 6.3) correctly captures the key tension in this vulnerability: the base metrics show trivial network reachability with no authentication required, while AT:P (Specific Attack Requirements Present) acknowledges that material impact depends on constraints being used to gate security-sensitive logic. For applications where typed-controller argument constraints enforce role membership, status-machine transitions, or enumerated sort directions, the real-world impact can exceed the VI:L baseline - a role bypass could represent a critical integrity failure. For applications that use constraints only for client-experience purposes, impact is negligible. EPSS data is absent from the provided intelligence; KEV status is not confirmed; no public exploit code is identified at time of analysis. The primary risk amplifier is the deceptive enforcement illusion: developers see constraints reflected in generated TypeScript and Zod/Valibot schemas and may assume server-side enforcement exists, delaying discovery. CVSS here does not conflict with the description - the conditional framing of AT:P is an honest representation of the deployment-dependent impact profile. |
| Exploit ScenarioDerived | An attacker sends a raw HTTP request (e.g., via curl) to a typed-controller endpoint that accepts a role argument constrained to one_of: [:viewer, :editor], submitting role=admin. Because apply_constraints/3 is never invoked, the cast succeeds, the atom :admin is delivered to the route handler, and the handler grants unintended administrative access. The attack requires only knowledge of the route path and argument names, obtainable from the application's API surface or generated TypeScript client code, and no exploit tooling beyond a standard HTTP client. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 01, 2026
Constraint bypass in ash_typescript typed-controller routes allows remote attackers to submit argument values outside declared allowlists or bounds by exploiting a missing validation step in the Ash type pipeline. Affected versions 0.15.0 through 0.17.x call Ash.Type.cast_input/3 but never invoke Ash.Type.apply_constraints/3, leaving constraints such as one_of, max_length, min, max, and match silently unenforced at runtime. Where these constraints gate role membership, status transitions, or other security-relevant decisions in the route handler, the bypass enables privilege escalation or state-machine abuse; a vendor-released patch is available in 0.18.0. No public exploit identified at time of analysis.
RemediationAI
Upgrade ash_typescript to version 0.18.0 or later; the fix is confirmed in commit 21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e (https://github.com/ash-project/ash_typescript/commit/21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e). The vendor advisory is at https://github.com/ash-project/ash_typescript/security/advisories/GHSA-f7fq-hwq6-jhvv. If immediate upgrade is not possible, audit all typed-controller route argument declarations for constraints that gate security-sensitive decisions (role assignment, status transitions, enumerated values), and add explicit server-side guard clauses in the route handler itself to re-enforce those constraints - this introduces maintenance overhead since constraints must be kept manually synchronized. A more conservative interim measure is to disable or restrict access to typed-controller routes that perform security-sensitive constraint-gated operations, at the cost of availability for those endpoints.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ash_typescript is an Elixir library in the Ash Framework ecosystem that generates typed Phoenix controller routes and corresponding TypeScript client types, Zod schemas, and (from 0.18.0) Valibot schemas from a DSL. The root cause (CWE-20, Improper Input Validation) lies in AshTypescript.TypedController.RequestHandler (lib/ash_typescript/typed_controller/request_handler.ex), which invokes Ash.Type.cast_input/3 to coerce raw HTTP argument terms but omits the mandatory subsequent call to Ash.Type.apply_constraints/3. In Ash's two-phase type system, cast_input/3 converts a raw term to the expected Elixir type, while apply_constraints/3 is the distinct phase that enforces every declared constraint - one_of allowlists, numeric min/max bounds, max_length for strings, regex match patterns, and the allow_nil?/allow_empty? normalization that converts empty strings to nil. Because apply_constraints/3 is never called on this code path, all of these constraints are inert at runtime. The same constraints are correctly rendered into generated TypeScript types and Zod/Valibot schemas, creating a false-enforcement surface: TypeScript callers appear to be restricted, while any raw HTTP client bypasses all restrictions. Affected CPE: cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:* versions 0.15.0 through <0.18.0.
Know when Ash Typescript gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable with no authentication required; scope unchanged; integrity impact low at baseline since security-sensitive exploitation depends on how constraints are used by the application.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Input Validation vulnerability in ash-project ash_typescript allows a remote attacker to submit argument values outside a declared allowlist or bound on typed-controller routes.
AshTypescript.TypedController.RequestHandler in lib/ash_typescript/typed_controller/request_handler.ex calls Ash.Type.cast_input/3 and treats an {:ok, cast} result as fully validated. In Ash these are separate steps: cast_input/3 only coerces the term, while every constraint declared on the argument is applied by Ash.Type.apply_constraints/3, which this path never calls. Constraints such as one_of, max_length, min and max, and match are therefore inert, so a value outside a declared allowlist is accepted and passed to the route handler. Codegen renders the same constraints into the generated TypeScript types, so an allowlist appears enforced to a TypeScript caller while any other HTTP client ignores it. Empty-string to nil normalization also lives in apply_constraints, so the allow_nil?: false check accepts "" for a required argument.
Where a constraint gates a role, a status, or a sort direction, this becomes a privilege or state-machine bypass.
This issue affects ash_typescript: from 0.15.0 before 0.18.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-68927
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB