{"id":"CVE-2026-81315","aliases":["CVE-2026-81315","EEF-CVE-2026-81315","GHSA-c92r-f3rr-q49h"],"related":[],"kind":"vulnerability","state":"published","title":"MCP DNS-rebinding origin check in AshAi is bypassed by a spoofed X-Forwarded-Proto header","summary":"Origin Validation Error vulnerability in ash-project ash_ai allows a malicious web page to bypass the MCP server's DNS-rebinding protection and issue cross-site requests to a user's local MCP server with that user's actor.\n\nIn AshAi.Mcp.Server, with the default allowed_origins: nil, origin_allowed?/3 accepts an origin when uri.host == conn.host and the forwarded scheme is https. Both values are attacker-controlled: conn.host comes from the Host header and the scheme is read from the raw x-forwarded-proto header with no trusted-proxy check. Under DNS rebinding the browser sends the attacker's origin and a matching host, and page JavaScript may set X-Forwarded-Proto: https, so the check passes with no TLS or proxy involved. The fix trusts only localhost origins by default; other origins require an explicit allowed_origins allowlist.\n\nThis issue affects ash_ai: from 0.8.0 before 1.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Origin Validation Error vulnerability in ash-project ash_ai allows a malicious web page to bypass the MCP server's DNS-rebinding protection and issue cross-site requests to a user's local MCP server with that user's actor.\n\nIn AshAi.Mcp.Server, with the default allowed_origins: nil, origin_allowed?/3 accepts an origin when uri.host == conn.host and the forwarded scheme is https. Both values are attacker-controlled: conn.host comes from the Host header and the scheme is read from the raw x-forwarded-proto header with no trusted-proxy check. Under DNS rebinding the browser sends the attacker's origin and a matching host, and page JavaScript may set X-Forwarded-Proto: https, so the check passes with no TLS or proxy involved. The fix trusts only localhost origins by default; other origins require an explicit allowed_origins allowlist.\n\nThis issue affects ash_ai: from 0.8.0 before 1.0.0.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nOrigin Validation Error vulnerability in ash-project ash_ai allows a malicious web page to bypass the MCP server's DNS-rebinding protection and issue cross-site requests to a user's local MCP server with that user's actor.\n\nIn `AshAi.Mcp.Server`, with the default `allowed_origins: nil`, `origin_allowed?/3` accepts an origin when `uri.host == conn.host` and the forwarded scheme is `https`. Both values are attacker-controlled: `conn.host` comes from the `Host` header and the scheme is read from the raw `x-forwarded-proto` header with no trusted-proxy check. Under DNS rebinding the browser sends the attacker's origin and a matching host, and page JavaScript may set `X-Forwarded-Proto: https`, so the check passes with no TLS or proxy involved. The fix trusts only localhost origins by default; other origins require an explicit `allowed_origins` allowlist.\n\nThis issue affects ash_ai: from 0.8.0 before 1.0.0.","format":"markdown","source":"eef"}],"published":"2026-08-31T00:57:55.910Z","modified":"2026-11-25T06:31:03.116Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.4,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"type":"semver","introduced":"0.8.0","fixed":"1.0.0","status":"affected"}],"vendor":"ash-project","product":"ash_ai","package":"ash_ai","cpe":"cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_ai","source":"cvelist"},{"ranges":[{"type":"git","introduced":"c94f0b17fbe252f68755ba512678586164ba6139","fixed":"28af68d73134df0b8fb3aa6ab03e8fd795b07c21","status":"affected"}],"vendor":"ash-project","product":"ash_ai","package":"ash-project/ash_ai","cpe":"cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_ai","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.0","status":"affected","fixed":"1.0.0"}],"ecosystem":"Hex","package":"ash_ai","purl":"pkg:hex/ash_ai","source":"eef"},{"ranges":[{"type":"git","introduced":"c94f0b17fbe252f68755ba512678586164ba6139","status":"affected","fixed":"28af68d73134df0b8fb3aa6ab03e8fd795b07c21"}],"repo":"https://github.com/ash-project/ash_ai","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-c92r-f3rr-q49h","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-81315.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81315","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_ai/commit/c94f0b17fbe252f68755ba512678586164ba6139","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_ai/commit/28af68d73134df0b8fb3aa6ab03e8fd795b07c21","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_ai","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-31T16:02:11.016Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81315","url":"https://www.cve.org/CVERecord?id=CVE-2026-81315","licence":"CVE Terms of Use","modified":"2026-11-19T08:39:44.895Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-81315","url":"https://osv.dev/vulnerability/EEF-CVE-2026-81315","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:03.116Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81315","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81315","licence":"Public domain","modified":"2026-11-19T09:18:01.910Z"}],"updatedAt":"2026-11-25T22:59:35.785Z","epss":{"score":0.00232,"percentile":0.1509,"date":"2026-12-01T12:00:22.000Z"}}