{"id":"EEF-CVE-2026-81315","aliases":["CVE-2026-81315","GHSA-c92r-f3rr-q49h"],"title":"MCP DNS-rebinding origin check in AshAi is bypassed by a spoofed X-Forwarded-Proto header","titleSource":"EEF","descriptionSource":"OSV","description":"## 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.","severity":"high","score":7.4,"published":"2026-08-31T00:57:55.910Z","modified":"2026-11-25T06:31:03.116Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"ash_ai","sources":[{"name":"OSV · EEF-CVE-2026-81315","url":"https://osv.dev/vulnerability/EEF-CVE-2026-81315"}],"ranges":[{"events":[{"introduced":"0.8.0"},{"fixed":"1.0.0"}],"type":"SEMVER"}],"versions":["0.8.0","0.8.1","0.8.2"],"fixed":["1.0.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"c94f0b17fbe252f68755ba512678586164ba6139"},{"fixed":"28af68d73134df0b8fb3aa6ab03e8fd795b07c21"}],"type":"GIT","repo":"https://github.com/ash-project/ash_ai"}],"versions":["v0.8.2","v0.8.1","v0.8.0"]}],"references":["https://github.com/ash-project/ash_ai/security/advisories/GHSA-c92r-f3rr-q49h","https://cna.erlef.org/cves/CVE-2026-81315.html","https://osv.dev/vulnerability/EEF-CVE-2026-81315","https://github.com/ash-project/ash_ai/commit/c94f0b17fbe252f68755ba512678586164ba6139","https://github.com/ash-project/ash_ai/commit/28af68d73134df0b8fb3aa6ab03e8fd795b07c21","https://hex.pm/packages/ash_ai"],"sources":[{"name":"CVE","id":"CVE-2026-81315","modified":"2026-11-19T08:39:44.895Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-81315"},{"name":"OSV","id":"EEF-CVE-2026-81315","modified":"2026-11-25T06:31:03.116986489Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-81315"}],"assessments":[{"source":"EEF","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},{"source":"OSV","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}],"cve":{"records":[{"id":"CVE-2026-81315","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-30T20:00:01.860Z","published":"2026-08-31T00:57:55.910Z","modified":"2026-11-19T08:39:44.895Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-19T08:39:44.895Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-08-31T16:02:38.700Z"}],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-c92r-f3rr-q49h","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-81315.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81315","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/commit/c94f0b17fbe252f68755ba512678586164ba6139","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/commit/28af68d73134df0b8fb3aa6ab03e8fd795b07c21","tags":["patch"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-c92r-f3rr-q49h","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-346","description":"CWE-346 Origin Validation Error","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.0","versionStartIncluding":"0.8.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-08-31T16:02:11.016935Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"products":[{"vendor":"ash-project","name":"ash_ai","platforms":[],"versions":[{"version":"0.8.0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/ash_ai","packageIdentity":{"ecosystem":"Hex","name":"ash_ai"},"cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-81315"},{"vendor":"ash-project","name":"ash_ai","platforms":[],"versions":[{"version":"c94f0b17fbe252f68755ba512678586164ba6139","status":"affected","lessThan":"28af68d73134df0b8fb3aa6ab03e8fd795b07c21","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ash-project/ash_ai","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-81315"}],"remediation":[],"observedAt":"2026-11-25T07:18:36.991Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T01:30:31.339Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-19T10:25:37.477Z","attemptedAt":"2026-11-19T10:25:37.477Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-19T10:25:36.432Z","attemptedAt":"2026-11-19T10:25:36.432Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-19T10:25:36.825Z","attemptedAt":"2026-11-19T10:25:36.825Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-19T10:25:36.894Z","attemptedAt":"2026-11-19T10:25:36.894Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-68304","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-68304","modified":"Nov 19, 2026, 8:39:44 AM","score":7.4,"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","checkedAt":"2026-11-19T10:25:36.825Z"},{"source":"FIRST EPSS","id":"CVE-2026-81315","url":"https://www.first.org/epss/","probability":0.00278,"percentile":0.20478,"date":"2026-11-18","checkedAt":"2026-11-19T10:25:36.894Z"},{"source":"NVD","id":"CVE-2026-81315","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81315","modified":"2026-11-19T09:18:01.910","score":7.4,"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/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","checkedAt":"2026-11-19T10:25:37.477Z"}],"aiSummary":null}