---
id: "CVE-2026-119613"
page: "https://infrastack.ai/live/CVE-2026-119613"
kind: "vulnerability"
aliases: ["CVE-2026-119613"]
title: "ash_ai: tool errors leak internal module names and data values"
severity: "medium"
cvss: 5.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["ash", "ash-ai", "elixir", "mcp", "package"]
not_affected_if: ["no-ash-ai-tools-exposed", "version-1.5.1-or-later"]
published_at: "2026-11-09T13:17:06+00:00"
first_seen_at: "2026-11-09T13:26:50+00:00"
updated_at: "2026-11-09T13:27:46+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119613", "first_seen_at": "2026-11-09T13:26:50+00:00"}]
exploit_sources: []
---

# ash_ai: tool errors leak internal module names and data values

Link for people: https://infrastack.ai/live/CVE-2026-119613 (this .md is for agents)

When an AshAi tool call fails, ash_ai returns the raw internal error text to the caller, including module names and data values. A caller of an AshAi tool can read those internals just by triggering a failure.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the `ash_ai` version in `mix.lock` or `mix.exs`; affected versions are from `1.5.0` before `1.5.1`.
- Look for AshAi tools or the MCP server (`AshAi.Mcp.Server`) exposed to callers outside the trusted team.

## Fix

- `ash_ai` `1.5.1` (the fix logs errors under an error id and returns only that id to the caller).

## Timeline

- 2026-11-09T13:26:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119613

## Documents

- [advisory] Vendor advisory: github.com https://github.com/ash-project/ash_ai/security/advisories/GHSA-vhmw-fwrr-r6c6
- [fix] Patch: github.com https://github.com/ash-project/ash_ai/commit/af7987769d78ed070c8a9f6e6ee542d91744eae6
- [fix] Patch: github.com https://github.com/ash-project/ash_ai/commit/fbad04e9620ef70603f4e67e03f15092f58578f6

## From the sources

Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_ai allows a caller of an AshAi tool to read internal error details, including module names and data values, by making a tool call fail.

AshAi.ToToolError gained an implementation for Ash.Error.Unknown.UnknownError that returns the error's error field as is, and AshAi.Tool.Errors.format/1 sends that text to MCP clients (tool calls and resource reads in AshAi.Mcp.Server) and to the model in AshAi.ToolLoop. Ash stores the full Exception.format/2 output of a raised exception, or inspect/1 of a bare {:error, term} return, in that field. A tool result that cannot be JSON-encoded raises a Protocol.UndefinedError whose text includes the inspected value, which can be a whole record with fields the tool never returns. None of these errors were logged. The fix logs them under an error id and returns only that id to the caller.

This issue affects ash_ai: from 1.5.0 before 1.5.1.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
