{"id":"CVE-2026-82731","published":"2026-09-01T02:09:38Z","modified":"2026-11-19T08:37:38Z","title":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","vendor":"ash-project","product":"ash_typescript","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.005,"percentile":0.35799,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f","tags":["related","vendor-advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-82731.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-82731","tags":["related"]},{"url":"https://github.com/ash-project/ash_typescript/commit/6669e22ece34b4534e706a46d1842f01b68ee23a","tags":["related"]},{"url":"https://github.com/ash-project/ash_typescript/commit/5165f752f5f92b755d946f2d1ce750ff69083ffc","tags":["patch"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":7.16},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"ash-project","affectedVersions":[{"vendor":"ash-project","product":"ash_typescript","versions":[">= 0.15.0, < 0.18.0"]},{"vendor":"ash-project","product":"ash_typescript","versions":[">= 6669e22ece34b4534e706a46d1842f01b68ee23a, < 5165f752f5f92b755d946f2d1ce750ff69083ffc"]}],"capec":[{"id":"CAPEC-72","name":"URL Encoding"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-01T15:13:34.848553Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-68930","exploited":false,"provenance":"source"}}