Skip to main content

ash_typescript CVE-2026-82732

| EUVDEUVD-2026-68927 MEDIUM
Improper Input Validation (CWE-20)
2026-09-01 EEF
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify typed-controller route with constrained argument
  2. Delivery
    Send crafted HTTP request with out-of-allowlist value
  3. Exploit
    cast_input/3 succeeds; apply_constraints/3 never called
  4. Execution
    Constraint silently bypassed
  5. Persist
    Handler receives unauthorized argument value
  6. Impact
    Role, 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ash_typescript 546a15e1a2d7dbf1df2d5a6ee4404bc3da87852e <21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e
ash_typescript 0.15.0 <0.18.0

Affected Packages

euvd ash_typescript fix: 0.18.0

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

Vendor (EEF) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
niche Elixir/Ash ecosystem library, limited enterprise footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy