CVE-2026-82731
Last modified
CVE-2026-82731 is a low-severity vulnerability rated 2.3/10 on the CVSS scale. 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. The 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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. The 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. The query-string path is unaffected, since URLSearchParams.set encodes its own values. This issue affects ash_typescript: from 0.15.0 before 0.18.0.
Metrics
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| ash-project | ash_typescript | >= 0.15.0, < 0.18.0 |
| ash-project | ash_typescript | >= 6669e22ece34b4534e706a46d1842f01b68ee23a, < 5165f752f5f92b755d946f2d1ce750ff69083ffc |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-82731?
How severe is CVE-2026-82731?
How do I fix CVE-2026-82731?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-82724Incorrect Authorization vulnerability in ash-project ash_pho…7.6
- CVE-2026-82725Authorization Bypass Through User-Controlled Key vulnerabili…2.3
- CVE-2026-82726Permissive Regular Expression vulnerability in ash-project a…6.3
- CVE-2026-82727Generation of Error Message Containing Sensitive Information…2.3
- CVE-2026-8273A weakness has been identified in D-Link DNS-320 2.06B01. Th…7.2
- CVE-2026-82730Incorrect Authorization vulnerability in ash-project ash_typ…8.2
- CVE-2026-82732Improper Input Validation vulnerability in ash-project ash_t…6.3
- CVE-2026-82733Generation of Error Message Containing Sensitive Information…6.3
- CVE-2026-82734Improper Validation of Specified Quantity in Input vulnerabi…2.1
- CVE-2026-82735Uncontrolled Resource Consumption vulnerability in ash-proje…5.9
- CVE-2026-82736Incorrect Behavior Order: Validate Before Canonicalize vulne…2.1
- CVE-2026-82737Integer Overflow or Wraparound vulnerability in ash-project …5.9
Are you affected by CVE-2026-82731?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
