{"id":"CVE-2026-82731","aliases":["CVE-2026-82731","EEF-CVE-2026-82731","GHSA-6g23-p936-fm2f"],"related":[],"kind":"vulnerability","state":"published","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","summary":"URL Redirection to Untrusted Site ('Open Redirect') vulnerability in ash-project ash_typescript allows an attacker who controls a path-parameter value to redirect a generated client's request, and the credentials attached to it, to an unintended route or an external origin.\n\nThe URL builders in lib/ash_typescript/typed_controller/codegen/route_renderer.ex replace each :param placeholder with a bare template interpolation and never call encodeURIComponent, so the value reaches executeTypedControllerRequest raw. A value containing ../ is normalised away by the fetch URL resolver and reaches a different route, while ? or # truncates the path and can smuggle or override query parameters. For a route whose path begins with a parameter, a value such as /evil.example.com/x yields the protocol-relative URL //evil.example.com/x, sending the request and the credentials from TypedControllerConfig to an attacker-controlled host. Nothing constrains the value at runtime: get_path_param_type/2 emits only a TypeScript type, which is erased.\n\nThe query-string path is unaffected, since URLSearchParams.set encodes its own values.\n\nThis issue affects ash_typescript: from 0.15.0 before 0.18.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"URL Redirection to Untrusted Site ('Open Redirect') vulnerability in ash-project ash_typescript allows an attacker who controls a path-parameter value to redirect a generated client's request, and the credentials attached to it, to an unintended route or an external origin.\n\nThe URL builders in lib/ash_typescript/typed_controller/codegen/route_renderer.ex replace each :param placeholder with a bare template interpolation and never call encodeURIComponent, so the value reaches executeTypedControllerRequest raw. A value containing ../ is normalised away by the fetch URL resolver and reaches a different route, while ? or # truncates the path and can smuggle or override query parameters. For a route whose path begins with a parameter, a value such as /evil.example.com/x yields the protocol-relative URL //evil.example.com/x, sending the request and the credentials from TypedControllerConfig to an attacker-controlled host. Nothing constrains the value at runtime: get_path_param_type/2 emits only a TypeScript type, which is erased.\n\nThe query-string path is unaffected, since URLSearchParams.set encodes its own values.\n\nThis issue affects ash_typescript: from 0.15.0 before 0.18.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nURL Redirection to Untrusted Site ('Open Redirect') vulnerability in ash-project ash_typescript allows an attacker who controls a path-parameter value to redirect a generated client's request, and the credentials attached to it, to an unintended route or an external origin.\n\nThe URL builders in `lib/ash_typescript/typed_controller/codegen/route_renderer.ex` replace each `:param` placeholder with a bare template interpolation and never call `encodeURIComponent`, so the value reaches `executeTypedControllerRequest` raw. A value containing `../` is normalised away by the fetch URL resolver and reaches a different route, while `?` or `#` truncates the path and can smuggle or override query parameters. For a route whose path begins with a parameter, a value such as `/evil.example.com/x` yields the protocol-relative URL `//evil.example.com/x`, sending the request and the credentials from `TypedControllerConfig` to an attacker-controlled host. Nothing constrains the value at runtime: `get_path_param_type/2` emits only a TypeScript type, which is erased.\n\nThe query-string path is unaffected, since `URLSearchParams.set` encodes its own values.\n\nThis issue affects ash_typescript: from 0.15.0 before 0.18.0.\n\n## Configurations\n\nThe application ships a TypeScript client generated by AshTypescript for a typed-controller route taking a path parameter, and passes untrusted input as that parameter.","format":"markdown","source":"eef"}],"published":"2026-09-01T02:09:38.801Z","modified":"2026-11-25T06:30:10.078Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N","score":2.3,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"0.15.0","fixed":"0.18.0","status":"affected"}],"vendor":"ash-project","product":"ash_typescript","package":"ash_typescript","cpe":"cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_typescript","source":"cvelist"},{"ranges":[{"type":"git","introduced":"6669e22ece34b4534e706a46d1842f01b68ee23a","fixed":"5165f752f5f92b755d946f2d1ce750ff69083ffc","status":"affected"}],"vendor":"ash-project","product":"ash_typescript","package":"ash-project/ash_typescript","cpe":"cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_typescript","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.15.0","status":"affected","fixed":"0.18.0"}],"ecosystem":"Hex","package":"ash_typescript","purl":"pkg:hex/ash_typescript","source":"eef"},{"ranges":[{"type":"git","introduced":"6669e22ece34b4534e706a46d1842f01b68ee23a","status":"affected","fixed":"5165f752f5f92b755d946f2d1ce750ff69083ffc"}],"repo":"https://github.com/ash-project/ash_typescript","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82731.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82731","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_typescript/commit/6669e22ece34b4534e706a46d1842f01b68ee23a","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_typescript/commit/5165f752f5f92b755d946f2d1ce750ff69083ffc","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_typescript","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Torkild Gundersen Kjevik / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-01T15:13:34.848Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-82731","url":"https://www.cve.org/CVERecord?id=CVE-2026-82731","licence":"CVE Terms of Use","modified":"2026-11-19T08:37:38.371Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-82731","url":"https://osv.dev/vulnerability/EEF-CVE-2026-82731","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:10.078Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-82731","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82731","licence":"Public domain","modified":"2026-11-19T09:18:07.820Z"}],"updatedAt":"2026-11-25T22:59:35.900Z","epss":{"score":0.00365,"percentile":0.32416,"date":"2026-12-01T12:00:22.000Z"}}