# AgentCrew: a tool schema's $ref read local files before any approval

> AgentCrew resolved JSON references inside an MCP server's tool schema, turning tool registration into a file read and an outbound request.

- **Severity:** Medium: Real and reproducible, but needs unusual setup, user help or a narrow audience. Plan a fix.
- **Category:** Vulnerability, Supply chain
- **Published by:** VulnCheck
- **Disclosed:** 2026-11-30
- **CVE:** CVE-2026-144453
- **CVSS:** 7.1
- **Affects:** AgentCrew
- **Research by:** Dilanka Kaushal Hewage
- **Primary source:** https://www.vulncheck.com/advisories/agentcrew-before-0.25.1-ssrf-and-local-file-read-via-mcp-ref-resolution
- **Page:** https://theinjection.dev/items/agentcrew-mcp-schema-ref-file-read/

A malicious MCP server could put a file or http reference in its tool schema, and AgentCrew resolved it while registering tools, before any tool call or approval prompt. CVE-2026-144453 is fixed in 0.25.1.

## What happened

Dilanka Kaushal Hewage, who uses the handle r3vpwnx, reported the flaw as a public GitHub issue on AgentCrew on 30 November 2026, with a working proof of concept. A project collaborator replied on 2 December, and the fix landed the next day in version 0.25.1. VulnCheck published it as CVE-2026-144453 on 3 December.

## How it works

AgentCrew's MCP client passes a server's tool schema to the jsonref library's replace_refs without a custom loader. The default loader fetches http and https references with requests.get, and other schemes, including file, with urlopen. Whatever comes back is placed into the function parameters sent to the model. Because all of this runs while registering tools from the tools/list response, nothing has yet asked the user to approve anything.

## Who is affected

AgentCrew 0.25.0 and earlier, plus the main branch at commit cb9143a, are affected for anyone who adds an MCP server they do not control. The reporter found that Python 3.12 inlines the referenced file content, while on Python 3.13 the file is still read but a type error stops registration. An http reference produces a blind outbound GET on every version tested.

## What to do

Upgrade AgentCrew to 0.25.1 or later. Treat every MCP server you add as code that runs at registration time, and review which servers are configured, not only which tool calls get approved.

## Quick facts

- **Affected:** AgentCrew 0.25.0 and earlier
- **Fixed in:** 0.25.1, 3 December 2026
- **CVE:** CVE-2026-144453 (CWE-918, CWE-73)
- **Found by:** Dilanka Kaushal Hewage (r3vpwnx)
- **Disclosed:** 30 November 2026, as a public issue
- **Trigger point:** Tool registration, before any approval prompt

## Questions

### Does the AgentCrew reference flaw need a tool call to be approved?

No. Dilanka Kaushal Hewage showed that AgentCrew resolves the references while registering tools from an MCP server's tools/list response, which happens before any tool call and before any approval prompt. Adding the server is enough on its own. Approving or denying individual tool calls therefore offers no protection against CVE-2026-144453.

### Which files could a malicious MCP server read from AgentCrew?

Local JSON files the AgentCrew process can read. The report names cloud and command-line credential files as the realistic target, since jsonref parses the reference as JSON and inlines it into the schema sent to the model. The proof of concept used a stand-in secret file rather than real credentials, plus a local listener for the request path.

### Are other MCP clients using jsonref affected like AgentCrew?

Unconfirmed. The AgentCrew report identifies the cause as calling jsonref's replace_refs on an untrusted schema with no loader, which is a pattern rather than an AgentCrew-only mistake, and the reporter suggested a loader that rejects non-local references. No advisory names another client, so treat it as a check worth running against your own MCP client.

## Sources

1. [VulnCheck Advisory](https://www.vulncheck.com/advisories/agentcrew-before-0.25.1-ssrf-and-local-file-read-via-mcp-ref-resolution)
2. [Reporter's Issue](https://github.com/saigontechnology/AgentCrew/issues/53)
3. [Version 0.25.1](https://github.com/saigontechnology/AgentCrew/releases/tag/v0.25.1)
