{"answers":{"affected":"1 open source package ship an affected version, including ash_typescript.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-82731 exists.","fix":"Upgrade ash_typescript to 0.18.0 or later.","what":"CVE-2026-82731 is a low-severity vulnerability in ash-project ash_typescript, published on 1 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-82731 and fix it if it is affected.\n\nWhat it is: CVE-2026-82731 is a low-severity vulnerability in ash-project ash_typescript, published on 1 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-82731 exists.\n\nAffected packages and fixed versions:\n- ash_typescript (Hex): affected from 0.15.0; fixed in 0.18.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-82731/ (Markdown: https://insights.sbomify.com/CVE-2026-82731/index.md)","id":"CVE-2026-82731","markdown":"https://insights.sbomify.com/CVE-2026-82731/index.md","name":"CVE-2026-82731","record":{"aliases":["EEF-CVE-2026-82731","GHSA-6g23-p936-fm2f"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"TypeScript client generator","requires_auth":"none","summary":"Attackers can redirect generated client requests to malicious hosts, potentially stealing credentials, by exploiting unescaped path parameters in AshTypescript.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection","id":"CVE-2026-82731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"open_redirect","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"Declared argument constraints not enforced on AshTypescript typed controller routes","id":"CVE-2026-82732"},"packages":[{"ecosystem":"Hex","fixed":["0.18.0"],"introduced":["0.15.0"],"last_affected":[],"package":"ash_typescript","purl":"pkg:hex/ash_typescript","source":"EEF-CVE-2026-82731"}],"prev":{"headline":"Authorization-redacted field values disclosed through AshTypescript result normalization","id":"CVE-2026-82730"},"products":["ash_typescript"],"published":"2026-09-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-01","vendors":["ash-project"]},"summary":"Attackers can redirect generated client requests to malicious hosts, potentially stealing credentials, by exploiting unescaped path parameters in AshTypescript.","url":"https://insights.sbomify.com/CVE-2026-82731/"}