Skip to main content
Vulnerability Database/CVE-2026-105790

CVE-2026-105790: Microsoft UFO Framework SSRF Vulnerability

CVE-2026-105790 is a server-side request forgery flaw in Microsoft UFO framework that enables authenticated attackers to probe internal networks through WebSocket redirects. This article covers technical details, affected versions, and patches.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105790 Overview

CVE-2026-105790 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in Microsoft UFO, an open-source framework for intelligent automation across devices and platforms. In versions prior to 3.0.9, authenticated device registration through /api/devices accepts an attacker-controlled WebSocket endpoint. The pinning logic in aip/transport/websocket.py only validates the initial destination. The pinned websockets.connect() client then follows cross-origin redirects and opens new TCP connections to internal hosts before Galaxy performs post-handshake peer-IP validation.

Critical Impact

Authenticated attackers can trigger WebSocket upgrade requests to internal hosts reachable from the UFO server, enabling internal network reconnaissance via redirect-based SSRF.

Affected Products

  • Microsoft UFO framework versions prior to 3.0.9
  • aip/transport/websocket.py transport component
  • Galaxy device registration endpoint (/api/devices)

Discovery Timeline

  • 2026-10-06 - CVE-2026-105790 published to NVD
  • 2026-10-06 - Last updated in NVD database
  • v3.0.9 - Microsoft releases patched version of UFO

Technical Details for CVE-2026-105790

Vulnerability Analysis

The vulnerability allows an authenticated user to register a device with a WebSocket endpoint under attacker control. The server validates the initial destination against a pinned_addresses list but fails to re-validate addresses encountered through HTTP redirects. When the attacker-supplied server returns a redirect response pointing at an internal host, the underlying websockets legacy client transparently follows the redirect and opens a new TCP connection to the redirected target.

The confirmed impact is limited to the internal connection and the WebSocket upgrade handshake request reaching the internal host. The flaw does not permit arbitrary HTTP methods, response-body disclosure, a completed Application Integration Protocol (AIP) session, or cloud metadata extraction. Exploitation requires valid authentication, which lowers the practical attack surface.

Root Cause

The root cause is incomplete enforcement of address pinning across the redirect lifecycle. pinned_addresses is only checked against the first destination resolved from the user-supplied URI. The legacy websockets.connect() implementation handled HTTP 3xx responses internally, resolving a new target address and establishing a new TCP connection without re-consulting the pin list. Post-handshake peer-IP validation performed by Galaxy occurred too late to prevent the internal connection.

Attack Vector

An authenticated attacker registers a device via /api/devices with a WebSocket URI pointing to an endpoint they control. The attacker-controlled endpoint returns an HTTP redirect to an internal address such as ws://169.254.169.254 or an RFC1918 host. The UFO server's pinned client follows the redirect and completes a TCP connection and WebSocket upgrade request against the internal target.

python
# Patch from aip/transport/websocket.py (v3.0.9)
import websockets
from websockets import WebSocketClientProtocol
from websockets.exceptions import ConnectionClosed, SecurityError, WebSocketException
from websockets.legacy.client import Connect

from .adapters import WebSocketAdapter, create_adapter
from .base import Transport, TransportState


class _PinnedWebSocketConnect(Connect):
    """Reject redirects before the legacy client opens another TCP connection."""

    def handle_redirect(self, uri: str) -> None:
        raise SecurityError("WebSocket redirects are not allowed for pinned connections")

Source: GitHub Commit f31fb5e. The patch subclasses the legacy Connect class and overrides handle_redirect to raise SecurityError before any secondary TCP connection is opened.

Detection Methods for CVE-2026-105790

Indicators of Compromise

  • Outbound WebSocket upgrade requests from the UFO server to RFC1918, loopback, or link-local addresses such as 169.254.169.254.
  • Device registration events against /api/devices referencing externally hosted WebSocket URIs followed by anomalous internal connection attempts.
  • HTTP 3xx responses observed in egress proxy logs where the original destination was a user-supplied WebSocket endpoint.

Detection Strategies

  • Correlate authenticated API calls to /api/devices with subsequent server-initiated connections to internal address space.
  • Alert on WebSocket client traffic from UFO hosts that resolves to cloud metadata endpoints or private IP ranges.
  • Review application logs for SecurityError exceptions from _PinnedWebSocketConnect after upgrading, which indicate redirect-based bypass attempts.

Monitoring Recommendations

  • Enable egress filtering telemetry on hosts running the UFO framework and forward it to a central analytics platform.
  • Track the version of UFO deployed across the fleet and flag any instance running below 3.0.9.
  • Monitor authentication logs for anomalous device registration activity from low-privilege accounts.

How to Mitigate CVE-2026-105790

Immediate Actions Required

  • Upgrade Microsoft UFO to version 3.0.9 or later, which enforces redirect rejection in pinned WebSocket connections.
  • Audit existing device registrations for WebSocket URIs pointing to untrusted or external hosts and remove suspect entries.
  • Rotate credentials for accounts with permission to call /api/devices if abuse is suspected.

Patch Information

The fix is published in GitHub Release v3.0.9 and detailed in GitHub Security Advisory GHSA-3pgm-xw75-hq27. The code change in commit f31fb5e introduces the _PinnedWebSocketConnect subclass to block redirects before a secondary TCP connection is opened.

Workarounds

  • Restrict outbound egress from UFO servers to a strict allowlist of known-good destinations until patching is complete.
  • Block server-side access to cloud metadata endpoints such as 169.254.169.254 using host firewall rules.
  • Limit device registration privileges to a minimal set of trusted operator accounts.
bash
# Example host-level egress restriction blocking metadata and RFC1918
iptables -A OUTPUT -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --dport 443 -j REJECT
iptables -A OUTPUT -d 172.16.0.0/12 -p tcp --dport 443 -j REJECT
iptables -A OUTPUT -d 192.168.0.0/16 -p tcp --dport 443 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.