{"vuln_id":"CVE-2026-82731","aliases":["GHSA-6g23-p936-fm2f"],"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.","published_at":"2026-09-01T03:16:52.993000Z","modified_at":"2026-11-19T09:18:07.820000Z","first_seen_at":"2026-11-21T19:15:46.626244Z","severity":"low","severity_source":"nvd","cvss_score":2.3,"cvss_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","cwe":["CWE-601"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00365,"epss_percentile":0.31019,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-82731"},"matched_alias":null,"items":[{"id":3461,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-82731: URL Redirection to Untrusted Site ('Open Redirect') vulnerability in ash-project ash_typescript allows an attacker who controls a path-parameter value to redir…","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.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-82731.html\nhttps://github.com/ash-project/ash_typescript/commit/5165f752f5f92b755d946f2d1ce750ff69083ffc\nhttps://github.com/ash-project/ash_typescript/commit/6669e22ece34b4534e706a46d1842f01b68ee23a\nhttps://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f\nhttps://osv.dev/vulnerability/EEF-CVE-2026-82731\nhttps://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82731","published_at":"2026-09-01T03:16:52.993000Z","updated_at":"2026-11-19T09:18:07.820000Z","fetched_at":"2026-11-21T19:15:31.479040Z","severity":"low","cvss_score":2.3,"epss":0.00365,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-82731","vuln_ids":["CVE-2026-82731","GHSA-6G23-P936-FM2F"],"tags":["CWE-601"],"cluster_id":3662,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3461","html":"https://vulnwatch.ve1ve2.com/item/3461"}}]}