{"id":"CVE-2026-82731","aliases":["EEF-CVE-2026-82731","EUVD-2026-68930","GHSA-6g23-p936-fm2f"],"status":"published","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","description":"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.","severity":{"version":"4.0","score":2.3,"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","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.005,"percentile":0.43371,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-601"],"published":"2026-09-01T02:09:38Z","modified":"2026-10-28T02:31:00Z","fixes":[{"ecosystem":"Hex","package":"ash_typescript","fixed_in":["0.18.0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Hex","package":"ash_typescript","ranges":[{"type":"SEMVER","events":[{"introduced":"0.15.0"},{"fixed":"0.18.0"}]}],"versions":["0.15.0","0.15.1","0.15.2","0.15.3","0.16.0","0.17.0","0.17.1","0.17.2","0.17.3"]}],"products":[{"vendor":"ash-project","product":"ash_typescript"}],"references":[{"url":"https://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f","tags":["related","vendor-advisory","exploit","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82731.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82731","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_typescript/commit/5165f752f5f92b755d946f2d1ce750ff69083ffc","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82731.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82731","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_typescript","tags":["package"]},{"url":"https://hex.pm/packages/ash_typescript","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-82731","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","description":"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.","status":"published","published":"2026-09-01T02:09:38.801Z","modified":"2026-09-01T15:13:54.605Z","cvss":[{"version":"4.0","score":2.3,"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","level":"low","assessor":"cna"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T13:40:35.004553Z"}],"euvd":[{"id":"EUVD-2026-68930","description":"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.","status":"published","published":"2026-09-01T02:09:38Z","modified":"2026-09-01T15:13:54Z","cvss":[{"version":"4.0","score":2.3,"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","level":"low"}],"updated_at":"2026-11-02T18:01:17.79788Z"}],"nvd":[{"id":"CVE-2026-82731","description":"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.","status":"published","published":"2026-09-01T03:16:52.993Z","modified":"2026-09-01T21:15:00.147Z","cvss":[{"version":"4.0","score":2.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","assessor":"secondary"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T14:12:42.691315Z"}],"osv":[{"id":"CVE-2026-82731","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","description":"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.","status":"published","published":"2026-09-01T02:09:38.801Z","modified":"2026-10-28T02:31:00.719462978Z","cvss":[{"version":"4.0","score":2.3,"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","level":"low"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:45:18.482949Z"},{"id":"EEF-CVE-2026-82731","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","description":"## 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.","status":"published","published":"2026-09-01T02:09:38.801Z","modified":"2026-09-08T03:30:04.089543386Z","cvss":[{"version":"4.0","score":2.3,"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","level":"low"}],"cwes":["CWE-601"],"updated_at":"2026-11-02T15:46:33.520522Z"}]}}
