CVE-2026-81315: CWE-346 Origin Validation Error in ash-project ash_ai
Description
CVE-2026-81315 is an origin validation error vulnerability in ash-project's ash_ai server component that allows a malicious web page to bypass DNS-rebinding protections. The vulnerability arises because the server trusts the Host header and X-Forwarded-Proto header without proper validation, enabling an attacker to issue cross-site requests to a user's local MCP server with that user's privileges. This affects ash_ai versions from 0.8.0 up to but not including 1.0.0. The default configuration is insecure, but the fix involves restricting trusted origins to localhost and requiring an explicit allowlist for others.
CVSS v4.0
Score 7.4high
Affected software
ash-project
ash_ai
ash-project
ash_ai
cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ash_ai (CVE-2026-81315) is due to improper origin validation in AshAi.Mcp.Server. When allowed_origins is nil (default), the origin_allowed?/3 function accepts an origin if the URI host matches the connection host and the forwarded scheme is 'https'. Both values are attacker-controlled: the Host header controls conn.host, and the X-Forwarded-Proto header controls the scheme, with no trusted-proxy verification. Under DNS rebinding attacks, an attacker can craft a malicious web page that sets these headers to bypass the server's DNS-rebinding protections and issue cross-site requests to the local MCP server with the user's actor privileges. The vulnerability affects ash_ai versions >=0.8.0 and <1.0.0. The recommended fix is to trust only localhost origins by default and require an explicit allowed_origins allowlist for other origins.
Potential Impact
An attacker can bypass DNS-rebinding protections and issue cross-site requests to a user's local MCP server with the user's actor privileges. This could lead to unauthorized actions being performed on the local MCP server on behalf of the user. The vulnerability requires user interaction (UI:A) and partial attack complexity (AC:L), with high impact on confidentiality and integrity (VC:H, VI:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves configuring the server to trust only localhost origins by default and requiring an explicit allowed_origins allowlist for other origins. Until an official patch or update is released, administrators should review and restrict allowed_origins settings to prevent accepting untrusted origins. No official fix or patch link is currently provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-30T20:00:01.860Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a94d3dbacd9273b49511804
Added to database: 08/31/2026, 01:07:39 UTC
Last enriched: 09/07/2026, 15:40:29 UTC
Last updated: 10/13/2026, 18:48:24 UTC
Views: 100
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.