
During a security review of Wiro-MCP, the official Model Context Protocol (MCP) server for Wiro AI, I identified an unrestricted URL fetch vulnerability in the upload_file tool.
The tool accepts an arbitrary URL parameter and downloads its content without validating the network scheme, protocol, or destination IP address. Because @wiro-ai/wiro-mcp runs locally on the user's host machine with the user's own credentials, the issue is classified as Low Severity.
| Property | Details |
|---|---|
| CVE Identifier | CVE-2026-134553 |
| Target Project | Wiro-MCP (github.com/wiroai/Wiro-MCP) |
| Package | @wiro-ai/wiro-mcp (npm) |
| Affected Versions | ≤ 1.3.0 |
| Researcher | Efe Kırbaş |
| Vulnerable Tool | upload_file — "Upload a file from URL for use as model input" |
| Vulnerability Class | CWE-918: Server-Side Request Forgery (SSRF) / Unrestricted URL Fetch |
| Reported To | Wiro AI Team |
| Severity | Low |
| Status | Patched in v1.3.1 / Disclosed |
The @wiro-ai/wiro-mcp package runs locally on the user's host machine (e.g., invoked via standard I/O in local agent environments such as Claude Desktop, Cursor, or CLI tooling) and executes under the user's existing system permissions and API key.
Because the MCP server executes locally rather than as a hosted multi-tenant service, the network reach is confined to what the user's local workstation can already access. Accordingly, the issue is categorized as Low Severity — representing a defense-in-depth weakness where an automated model prompt could instruct the tool to make unintended internal network requests.
I reported the vulnerability directly to the Wiro AI engineering team under responsible disclosure principles on 16 October 2026.
The Wiro team reviewed the finding promptly, verified the report, and confirmed that the package runs on the user's local machine with the user's own API key. They agreed that URL validation should be enforced to protect against automated models requesting unintended targets.
Wiro released an official patch the very same day (16 October 2026) in version 1.3.1 on npm, introducing strict destination validation and download limits via commit ac61f79 ("fix: restrict upload_file downloads to public http(s) hosts").
The vulnerability stems from two layers: permissive input schema validation and direct URL invocation without transport restrictions.
| File | Function / Scope | Lines | Vulnerable Aspect |
|---|---|---|---|
src/tools/upload-file.ts | registerUploadFile() | 8–84 (esp. 16–18) | Input schema uses only z.string().url() |
src/client.ts | WiroClient.uploadFile() | 316–350 (esp. 316–320) | fetch(fileUrl) called directly without target IP/protocol checks |
upload-file.ts)In src/tools/upload-file.ts, the input schema for the upload_file tool validates the incoming url parameter solely via Zod's z.string().url():

As highlighted in the source code above:
file://, ftp://, gopher://, data:) is accepted without verification.127.0.0.1, localhost) are not blocked.Because z.string().url() only enforces syntactic conformance to generic URI structure (RFC 3986), any syntactically valid URL passes down to the client without security constraints.
client.ts)Once the URL passes schema validation, it is forwarded directly to WiroClient.uploadFile():

As shown in src/client.ts:
fetch() call without prior IP verification or protocol restrictions.Blob and subsequently uploaded to the user's Wiro account via /File/Upload as model input.All of the following URL structures satisfy z.string().url() and are forwarded directly into fetch():
{
"tool": "upload_file",
"arguments": {
"url": "http://10.0.0.1:8080/admin"
}
}
file://){
"tool": "upload_file",
"arguments": {
"url": "file:///etc/passwd"
}
}
file:// schemes passed the z.string().url() schema check, Node.js's built-in fetch() implementation does not support file:// schemes by default and throws a protocol error upon execution. As confirmed during verification by the Wiro engineering team, direct local file disclosure via file:// does not succeed under standard Node.js runtimes.To demonstrate why generic URL format validation is insufficient on its own and requires network/IP-level validation, a standalone Python simulation script (poc_ssrf_validation.py) was evaluated:
"""
PoC - SSRF Doğrulama Simülasyonu
Paket: @wiro-ai/wiro-mcp v1.3.0
Dosya: src/tools/upload-file.ts
Bu script, z.string().url() doğrulamasının tehlikeli URL'leri
kabul ettiğini simüle eder. Zod (JS) doğrulaması yerine
Python'da aynı URL format kontrolü simülasyonu yapılır.
"""
from urllib.parse import urlparse
malicious_urls = [
"http://127.0.0.1:8080/",
"http://localhost:3000/admin",
"http://10.0.0.1/internal-api",
"http://192.168.1.1/router-admin",
"http://172.16.0.1/secret",
"file:///etc/passwd",
"http://[::1]:8080/",
]
def is_valid_url(url: str) -> bool:
"""z.string().url() davranışını simüle eder - sadece format kontrolü yapar."""
try:
result = urlparse(url)
return bool(result.scheme and result.netloc) or result.scheme == "file"
except Exception:
return False
print("=" * 60)
print(" Mevcut z.string().url() Doğrulaması (Simülasyon)")
print(" Paket: @wiro-ai/wiro-mcp - upload-file.ts")
print("=" * 60)
print()
for url in malicious_urls:
accepted = is_valid_url(url)
status = "KABUL (TEHLİKELİ)" if accepted else "REDDEDİLDİ"
symbol = "[+]" if accepted else "[-]"
print(f" {symbol} {status} -> {url}")
print()
print("-" * 60)
print(" SONUÇ: Format kontrolünden tüm iç adresler geçiyor.")
print(" z.string().url() sadece sözdizimi kontrolü yapar,")
print(" protokol veya IP adresi kısıtlaması uygulamaz.")
print("-" * 60)
print()
# ---- Kavramsal filtreleme mantığı (Simülasyon) ----
BLOCKED_PATTERNS = [
"localhost",
"127.", "10.", "0.",
"192.168.", "169.254.",
"::1",
]
BLOCKED_PREFIXES_172 = range(16, 32)
def is_safe_url(url: str) -> bool:
"""Kavramsal IP kontrol mantığı simülasyonu."""
parsed = urlparse(url)
if parsed.scheme not in ("http", "https"):
return False
hostname = parsed.hostname or ""
hostname = hostname.lower().strip("[]")
for pattern in BLOCKED_PATTERNS:
if hostname.startswith(pattern) or hostname == pattern:
return False
if hostname.startswith("172."):
parts = hostname.split(".")
if len(parts) >= 2:
try:
second = int(parts[1])
if second in BLOCKED_PREFIXES_172:
return False
except ValueError:
pass
return True
print("=" * 60)
print(" Kavramsal Filtreleme Simülasyonu")
print("=" * 60)
print()
for url in malicious_urls:
accepted = is_safe_url(url)
status = "KABUL" if accepted else "ENGELLENDİ"
symbol = "[+]" if accepted else "[X]"
print(f" {symbol} {status} -> {url}")
print()
print("-" * 60)
print(" SONUÇ: Özel ve yerel ağ adresleri filtrelendi.")
print("-" * 60)

z.string().url()) only verify URI structure, meaning internal IP addresses and LAN targets are treated as valid URLs.src/utils/remote-file.ts that runs DNS lookups at the socket level and manually validates each redirect hop.In version 1.3.1, Wiro AI addressed the issue by introducing src/utils/remote-file.ts with fetchPublicFile():
http: and https: schemes are accepted.