{"id":"CVE-2026-82732","state":"PUBLISHED","title":"Declared argument constraints not enforced on AshTypescript typed controller routes","description":"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.\n\nAshTypescript.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.\n\nWhere a constraint gates a role, a status, or a sort direction, this becomes a privilege or state-machine bypass.\n\nThis issue affects ash_typescript: from 0.15.0 before 0.18.0.","publishedAt":"2026-09-01T02:09:15.070Z","updatedAt":"2026-09-01T14:55:02.304Z","severity":{"score":6.3,"label":"Medium","version":"4.0","vector":"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","source":"EEF"},"assigner":"EEF","products":["ash-project ash_typescript"],"affected":[{"vendor":"ash-project","product":"ash_typescript","packageName":"ash_typescript","packageURL":"pkg:hex/ash_typescript","defaultStatus":"unaffected","versions":[{"version":"0.15.0","status":"affected","lessThan":"0.18.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshTypescript.TypedController.RequestHandler'"],"programFiles":["lib/ash_typescript/typed_controller/request_handler.ex"],"programRoutines":[{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':cast_arguments/2"},{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':handle/4"}],"repo":"https://github.com/ash-project/ash_typescript"},{"vendor":"ash-project","product":"ash_typescript","packageName":"ash-project/ash_typescript","packageURL":"pkg:github/ash-project/ash_typescript","defaultStatus":"unaffected","versions":[{"version":"546a15e1a2d7dbf1df2d5a6ee4404bc3da87852e","status":"affected","lessThan":"21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshTypescript.TypedController.RequestHandler'"],"programFiles":["lib/ash_typescript/typed_controller/request_handler.ex"],"programRoutines":[{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':cast_arguments/2"},{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':handle/4"}],"repo":"https://github.com/ash-project/ash_typescript"}],"references":["https://github.com/ash-project/ash_typescript/security/advisories/GHSA-f7fq-hwq6-jhvv","https://cna.erlef.org/cves/CVE-2026-82732.html","https://osv.dev/vulnerability/EEF-CVE-2026-82732","https://github.com/ash-project/ash_typescript/commit/21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82732.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82732","state":"PUBLISHED","datePublished":"2026-09-01T02:09:15.070Z","dateUpdated":"2026-09-01T14:55:02.304Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-08-31T00:59:10.001Z"},"containers":{"cna":{"title":"Declared argument constraints not enforced on AshTypescript typed controller routes","descriptions":[{"lang":"en","value":"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.\n\nAshTypescript.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.\n\nWhere a constraint gates a role, a status, or a sort direction, this becomes a privilege or state-machine bypass.\n\nThis issue affects ash_typescript: from 0.15.0 before 0.18.0."}],"affected":[{"vendor":"ash-project","product":"ash_typescript","packageName":"ash_typescript","packageURL":"pkg:hex/ash_typescript","defaultStatus":"unaffected","versions":[{"version":"0.15.0","status":"affected","lessThan":"0.18.0","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshTypescript.TypedController.RequestHandler'"],"programFiles":["lib/ash_typescript/typed_controller/request_handler.ex"],"programRoutines":[{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':cast_arguments/2"},{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':handle/4"}],"repo":"https://github.com/ash-project/ash_typescript"},{"vendor":"ash-project","product":"ash_typescript","packageName":"ash-project/ash_typescript","packageURL":"pkg:github/ash-project/ash_typescript","defaultStatus":"unaffected","versions":[{"version":"546a15e1a2d7dbf1df2d5a6ee4404bc3da87852e","status":"affected","lessThan":"21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshTypescript.TypedController.RequestHandler'"],"programFiles":["lib/ash_typescript/typed_controller/request_handler.ex"],"programRoutines":[{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':cast_arguments/2"},{"name":"'Elixir.AshTypescript.TypedController.RequestHandler':handle/4"}],"repo":"https://github.com/ash-project/ash_typescript"}],"references":[{"url":"https://github.com/ash-project/ash_typescript/security/advisories/GHSA-f7fq-hwq6-jhvv","tags":["related","vendor-advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82732.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82732","tags":["related"]},{"url":"https://github.com/ash-project/ash_typescript/commit/21ab6f1229a4dccdb56bc37ed437d9672a0c4a4e","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-09-01T02:09:15.070Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The application exposes an AshTypescript typed controller over HTTP with at least one route argument carrying a <code>constraints</code> declaration that gates application behaviour.</p>"},{"base64":false,"type":"text/markdown","value":"The application exposes an AshTypescript typed controller over HTTP with at least one route argument carrying a `constraints` declaration that gates application behaviour."}],"value":"The application exposes an AshTypescript typed controller over HTTP with at least one route argument carrying a constraints declaration that gates application behaviour."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*","versionEndExcluding":"0.18.0","versionStartIncluding":"0.15.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Torkild Gundersen Kjevik / Ash Project"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-153","descriptions":[{"lang":"en","value":"CAPEC-153 Input Data Manipulation"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ash-project/ash_typescript/security/advisories/GHSA-f7fq-hwq6-jhvv","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-01T14:54:31.577510Z","id":"CVE-2026-82732","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-01T14:55:02.304Z"}}]}}}