{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-82731",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-08-31T00:59:08.960Z",
        "datePublished": "2026-09-01T02:09:38.801Z",
        "dateUpdated": "2026-09-01T02:09:38.801Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.AshTypescript.TypedController.Codegen.RouteRenderer'"
                    ],
                    "packageName": "ash_typescript",
                    "packageURL": "pkg:hex/ash_typescript",
                    "product": "ash_typescript",
                    "programFiles": [
                        "lib/ash_typescript/typed_controller/codegen/route_renderer.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.AshTypescript.TypedController.Codegen.RouteRenderer':build_url_template_to_variable/4"
                        }
                    ],
                    "repo": "https://github.com/ash-project/ash_typescript",
                    "vendor": "ash-project",
                    "versions": [
                        {
                            "lessThan": "0.18.0",
                            "status": "affected",
                            "version": "0.15.0",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.AshTypescript.TypedController.Codegen.RouteRenderer'"
                    ],
                    "packageName": "ash-project/ash_typescript",
                    "packageURL": "pkg:github/ash-project/ash_typescript",
                    "product": "ash_typescript",
                    "programFiles": [
                        "lib/ash_typescript/typed_controller/codegen/route_renderer.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.AshTypescript.TypedController.Codegen.RouteRenderer':build_url_template_to_variable/4"
                        }
                    ],
                    "repo": "https://github.com/ash-project/ash_typescript",
                    "vendor": "ash-project",
                    "versions": [
                        {
                            "lessThan": "5165f752f5f92b755d946f2d1ce750ff69083ffc",
                            "status": "affected",
                            "version": "6669e22ece34b4534e706a46d1842f01b68ee23a",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>The application ships a TypeScript client generated by AshTypescript for a typed-controller route taking a path parameter, and passes untrusted input as that parameter.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "The application ships a TypeScript client generated by AshTypescript for a typed-controller route taking a path parameter, and passes untrusted input as that parameter."
                        }
                    ],
                    "value": "The application ships a TypeScript client generated by AshTypescript for a typed-controller route taking a path parameter, and passes untrusted input as that parameter."
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:ash-project:ash_typescript:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "0.18.0",
                                    "versionStartIncluding": "0.15.0",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "reporter",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Torkild Gundersen Kjevik / Ash Project"
                },
                {
                    "lang": "en",
                    "type": "coordinator",
                    "value": "Jonatan Männchen / EEF"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>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.</p>\n<p>The URL builders in <code>lib/ash_typescript/typed_controller/codegen/route_renderer.ex</code> replace each <code>:param</code> placeholder with a bare template interpolation and never call <code>encodeURIComponent</code>, so the value reaches <code>executeTypedControllerRequest</code> raw. A value containing <code>../</code> is normalised away by the fetch URL resolver and reaches a different route, while <code>?</code> or <code>#</code> truncates the path and can smuggle or override query parameters. For a route whose path begins with a parameter, a value such as <code>/evil.example.com/x</code> yields the protocol-relative URL <code>//evil.example.com/x</code>, sending the request and the credentials from <code>TypedControllerConfig</code> to an attacker-controlled host. Nothing constrains the value at runtime: <code>get_path_param_type/2</code> emits only a TypeScript type, which is erased.</p>\n<p>The query-string path is unaffected, since <code>URLSearchParams.set</code> encodes its own values.</p>\n<p>This issue affects ash_typescript: from 0.15.0 before 0.18.0.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "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."
                        }
                    ],
                    "value": "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."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-72",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-72 URL Encoding"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "attackVector": "NETWORK",
                        "baseScore": 2.3,
                        "baseSeverity": "LOW",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "PASSIVE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "LOW",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-601",
                            "description": "CWE-601 URL Redirection to Untrusted Site ('Open Redirect')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-09-01T02:09:38.801Z"
            },
            "references": [
                {
                    "tags": [
                        "related",
                        "vendor-advisory"
                    ],
                    "url": "https://github.com/ash-project/ash_typescript/security/advisories/GHSA-6g23-p936-fm2f"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-82731.html"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-82731"
                },
                {
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/ash-project/ash_typescript/commit/5165f752f5f92b755d946f2d1ce750ff69083ffc"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "Unescaped path parameters in AshTypescript generated TypeScript client allow request redirection"
        }
    }
}