# CVE-2026-81315: MCP DNS-rebinding origin check in AshAi is bypassed by a spoofed X-Forwarded-Proto header

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-346
- **Published:** 2026-08-31T00:57:55.910Z
- **Modified:** 2026-11-19T09:18:01.910Z

## Who should check

- Anyone running ash-project ash\_ai \>= 0.8.0, \< 1.0.0
- Anyone running ash-project ash\_ai \>= c94f0b17fbe252f68755ba512678586164ba6139, \< 28af68d73134df0b8fb3aa6ab03e8fd795b07c21

## Description

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.

In 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.

This issue affects ash\_ai: from 0.8.0 before 1.0.0.

## Affected and fixed versions

- ash-project ash\_ai: \>= 0.8.0, \< 1.0.0 (cvelist)
- ash-project ash\_ai: \>= c94f0b17fbe252f68755ba512678586164ba6139, \< 28af68d73134df0b8fb3aa6ab03e8fd795b07c21 (cvelist)

## Mitigation

- Upgrade ash\_ai to 1.0.0 or later.
- Upgrade ash\_ai to 28af68d73134df0b8fb3aa6ab03e8fd795b07c21 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-81315. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-81315.md
Affected: ash-project ash_ai >= 0.8.0, < 1.0.0; ash-project ash_ai >= c94f0b17fbe252f68755ba512678586164ba6139, < 28af68d73134df0b8fb3aa6ab03e8fd795b07c21
Fixed in: ash-project ash_ai 1.0.0, ash-project ash_ai 28af68d73134df0b8fb3aa6ab03e8fd795b07c21

Steps:
1. Search this machine and project for ash-project ash_ai: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-81315 being exploited?

There is no confirmed exploitation: CVE-2026-81315 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-81315?

High: CVSS 7.4 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-81315?

ash-project ash\_ai \>= 0.8.0, \< 1.0.0; ash-project ash\_ai \>= c94f0b17fbe252f68755ba512678586164ba6139, \< 28af68d73134df0b8fb3aa6ab03e8fd795b07c21.

### Is there a fix for CVE-2026-81315?

Yes. Fixed in ash-project ash\_ai 1.0.0, ash-project ash\_ai 28af68d73134df0b8fb3aa6ab03e8fd795b07c21. Upgrade ash\_ai to 1.0.0 or later. Upgrade ash\_ai to 28af68d73134df0b8fb3aa6ab03e8fd795b07c21 or later.

### How do I check if I'm affected by CVE-2026-81315?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ash-project/ash_ai/security/advisories/GHSA-c92r-f3rr-q49h>
- patch: <https://github.com/ash-project/ash_ai/commit/c94f0b17fbe252f68755ba512678586164ba6139>
- patch: <https://github.com/ash-project/ash_ai/commit/28af68d73134df0b8fb3aa6ab03e8fd795b07c21>
- other: <https://cna.erlef.org/cves/CVE-2026-81315.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-81315>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-81315>

HTML: <https://flawdb.com/CVE-2026-81315> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-81315>
