Skip to main content

@utcp/http CVE-2026-45366

MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-14 https://github.com/universal-tool-calling-protocol/typescript-utcp GHSA-r8j5-8747-88cm
4.7
CVSS 3.1 · Vendor: https://github.com/universal-tool-calling-protocol/typescript-utcp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Social engineer / prompt inject agent
  2. Delivery
    registerManual() called with attacker URL
  3. Exploit
    OpenApiConverter fetches attacker's HTTPS spec
  4. Install
    Extracts malicious servers[0].url (internal IP)
  5. C2
    callTool() invokes without revalidation
  6. Execute
    HTTP request to internal service (metadata, Redis, Elasticsearch)
  7. Impact
    Attacker reads credentials or internal data
  8. Step 8
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm @utcp/http fix: 1.1.2

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

Vendor (https://github.com/universal-tool-calling-protocol/typescript-utcp) PRIMARY 4.7 MEDIUM
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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: the streamable_http and sse callToolStreaming paths 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 call ensureSecureUrl before issuing the request.
  • @utcp/http 1.1.2 - full fix. Runtime revalidation in callTool closes the non-loopback variants; the OpenApiConverter rejects, at conversion time, any spec fetched from a non-loopback source that declares a loopback servers[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 registerManual with 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

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:npm/@utcp_http

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy