@utcp/http CVE-2026-45366
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSocial engineer / prompt inject agent
-
DeliveryregisterManual() called with attacker URL
-
ExploitOpenApiConverter fetches attacker's HTTPS spec
-
InstallExtracts malicious servers[0].url (internal IP)
-
C2callTool() invokes without revalidation
-
ExecuteHTTP request to internal service (metadata, Redis, Elasticsearch)
-
ImpactAttacker reads credentials or internal data
-
Step 8Exfiltrate via LLM response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an attacker to control the OpenAPI specification declared on a legitimate HTTPS endpoint AND convince the agent (via LLM prompt injection, tool-discovery input, or operator action) to call registerManual() with that URL. The vulnerability is NOT triggered by default configurations - the agent must actively invoke registerManual() with an attacker-controlled URL. Once registered, the SSRF is triggered during tool invocation with no additional user interaction. The internal IP addresses targeted (loopback, 169.254.x.x, RFC 1918) must be reachable from the agent host's network; agents running in fully air-gapped or VPC-isolated environments with restrictive egress rules are protected. The callToolStreaming paths in streamable_http and sse protocols are TODO placeholders and do not actually fetch URLs in version 1.1.1, so SSRF in those protocols is limited to discovery-time fetches; future implementations must apply the same revalidation. |
| Impact | This is a medium-severity SSRF with limited but real exploitation requirements. The CVSS score of 4.7 (AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N) reflects network accessibility but high attack complexity and required user interaction. The AC:H rating reflects the need to convince the LLM agent or its operator to register an attacker-controlled URL, and UI:R indicates reliance on social engineering or prompt injection. However, the assessment understates practical risk: once an attacker achieves URL registration (via prompt injection, which is increasingly viable), exploitation is deterministic and leads to high-impact outcomes (metadata credential theft, internal service access). The vulnerability affects all versions <= 1.1.1; patch 1.1.2 addresses both the revalidation gap and the prefix-bypass via hostname-based validation. SSRF against cloud metadata endpoints (169.254.169.254, metadata.google.internal) is a confirmed attack surface with routine real-world impact. The lack of authentication or complexity in the SSRF itself, once the malicious spec is registered, makes this a concern for any deployment where LLM prompt injection is possible. Workarounds (network isolation, refusing untrusted URLs) are effective but require operational discipline. |
| Exploit ScenarioDerived | An attacker crafts a malicious OpenAPI specification declaring a cloud metadata endpoint (servers: [{ url: 'http://169.254.169.254/latest/meta-data' }]) or loopback Elasticsearch instance (servers: [{ url: 'http://127.0.0.1:9200' }]) and hosts it on a legitimate HTTPS domain they control. Via prompt injection or social engineering, they convince an LLM agent running @utcp/http to register the malicious spec URL. The agent's registerManual() validation passes (the attacker's HTTPS endpoint is legitimate), but when the agent invokes a tool, the OpenApiConverter extracts the internal IP from servers[0].url and directs the HTTP request to the internal service without revalidation. If the target is AWS metadata, the attacker retrieves IAM credentials; if Elasticsearch, they query sensitive indices; responses are returned to the LLM, enabling exfiltration via prompt injection. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Server-Side Request Forgery in @utcp/http <= 1.1.1 allows remote attackers to redirect tool invocations to internal services via malicious OpenAPI specs. An attacker hosting a malicious OpenAPI specification on a legitimate HTTPS endpoint can declare internal server URLs (e.g., http://127.0.0.1:9090 or http://169.254.169.254) in the servers array; the OpenApiConverter blindly trusts these URLs without revalidation during tool invocation, enabling access to cloud metadata endpoints, internal databases, and loopback services. Additionally, a prefix-bypass in hostname validation (startsWith check) allows URLs like http://localhost.evil.com to bypass discovery-time restrictions. Patch version 1.1.2 is available.
RemediationAI
Upgrade @utcp/http to version 1.1.2 immediately, which includes runtime revalidation of URLs in callTool() via the new ensureSecureUrl() helper and rejects remote-fetched OpenAPI specs that declare loopback server URLs at conversion time. For users unable to upgrade immediately, implement network-level mitigations: restrict outbound network access from hosts running the agent so that RFC 1918 addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local addresses (169.254.0.0/16), and loopback (127.0.0.0/8) are unreachable via egress filtering. Additionally, enforce strict policies prohibiting calls to registerManual() with any URL controlled by untrusted parties, even over HTTPS; this requires either operator discipline or automated prompt filtering to prevent LLM-driven registration of attacker URLs. The network isolation workaround has the trade-off of blocking legitimate internal tool integrations, so it should be combined with allowlist-based egress rules if internal services must be reached. See https://github.com/universal-tool-calling-protocol/typescript-utcp/security/advisories/GHSA-r8j5-8747-88cm for official guidance.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from a trust-boundary inconsistency in the Universal Tool Calling Protocol HTTP implementation. The registerManual() function validates discovery URLs against an HTTPS/loopback allowlist, but the downstream callTool() function and OpenApiConverter reuse resolved URLs without revalidation. The OpenApiConverter processes OpenAPI specifications and extracts the servers[0].url field without confirming that the URL's origin matches the spec's fetch origin. This allows an attacker to host a malicious spec on a trusted HTTPS endpoint while declaring internal IP addresses or loopback addresses as the tool endpoint. The prefix-bypass affects hostname validation logic that used startsWith('http://localhost') instead of proper hostname parsing, allowing domain names like localhost.evil.com to pass validation. The root cause is improper input validation (CWE-918: Server-Side Request Forgery) combined with insufficient URL canonicalization and cross-layer validation.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/universal-tool-calling-protocol/typescript-utcp) · only source for this CVE.
CVSS VectorVendor: https://github.com/universal-tool-calling-protocol/typescript-utcp
DescriptionCVE.org
Summary
The @utcp/http package is vulnerable to a blind Server-Side Request Forgery (SSRF) caused by a trust-boundary inconsistency between manual discovery and tool invocation. registerManual() validates the discovery URL against an HTTPS / loopback allowlist, but callTool() reuses the resolved toolCallTemplate.url directly without revalidating, and the OpenApiConverter blindly trusts whatever servers[0].url an attacker-hosted spec declares. An attacker who hosts a malicious OpenAPI spec on a legitimate HTTPS endpoint can declare e.g. servers: [{ url: "http://127.0.0.1:9090" }] or servers: [{ url: "http://169.254.169.254" }]; the converter then produces tools whose URL points at internal services on the agent host.
A separate prefix-bypass also affected the discovery-time check: the previous startsWith('http://localhost') guard let URLs like http://localhost.evil.com through.
Sister advisory
This is the npm/TypeScript counterpart of GHSA-39j6-4867-gg4w / CVE-2026-44661 on the Python utcp-http package. Same vulnerability, same fix shape, same reporter.
Versions and patch state
@utcp/http <= 1.1.1- vulnerable. Both the loopback-redirect (http://127.0.0.1) and the non-loopback internal-IP variants (e.g.http://169.254.169.254,http://10.0.0.5) succeed. Note: thestreamable_httpandssecallToolStreamingpaths in 1.1.1 are TODO placeholders and don't actually fetch URLs, so the runtime SSRF surface in these protocols is currently confined to discovery - a future implementation must also callensureSecureUrlbefore issuing the request.@utcp/http 1.1.2- full fix. Runtime revalidation incallToolcloses the non-loopback variants; theOpenApiConverterrejects, at conversion time, any spec fetched from a non-loopback source that declares a loopbackservers[0].url, closing the loopback-redirect variant.
Impact
A remote attacker who can convince the agent (via the LLM context, prompt injection, or a tool-discovery surface) to register their HTTPS OpenAPI URL can:
- Map internal networks behind the agent.
- Read AWS/GCP IAM credentials from cloud metadata endpoints (
http://169.254.169.254,http://metadata.google.internal). - Reach unauthenticated internal services exposed on loopback (Elasticsearch, Redis HTTP, internal admin panels, the agent's own HTTP server).
- Have responses returned to the LLM, which combined with prompt injection enables exfiltration back to the attacker.
Patch
Commit on dev: 21f63e6.
New helper packages/http/src/_security.ts exposes isSecureUrl, isLoopbackUrl, ensureSecureUrl. Hostname-based validation closes the prefix bypass (http://localhost.evil.com → rejected). All three protocols' registerManual now call ensureSecureUrl(url, 'manual discovery'); callTool re-checks the resolved URL with ensureSecureUrl(url, 'tool invocation') immediately before the axios request. OpenApiConverter rejects remote spec → loopback server.
Workarounds
For users who cannot upgrade immediately:
- Refuse to call
registerManualwith any URL controlled by an untrusted party, even over HTTPS. - Restrict outbound network access from the host running the agent so internal addresses (RFC1918, 169.254.0.0/16, loopback) are unreachable.
Credit
Discovered and reported by @YLChen-007 against the Python sibling implementation (universal-tool-calling-protocol/python-utcp#83). The TypeScript port shared the same code shape and the same vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-r8j5-8747-88cm
NVD
CVE.org
EPSS
VulDB
Exploit-DB