Summary
CVE-2026-92576 is a Server-Side Request Forgery (SSRF) vulnerability in HKUDS nanobot (PyPI package nanobot-ai), affecting all versions prior to 0.3.0. The flaw resides in the WebFetchTool component’s _validate_url() function, which fails to adequately block requests to internal IP ranges and private addresses. The issue is rated CRITICAL (CVSS v4.0 base score 9.2) and allows unauthenticated, network-based exploitation.
Technical details
- Root cause: The
_validate_url()function in nanobot’sWebFetchToolinadequately validates and filters URLs before the tool fetches them, failing to block internal/private IP ranges. - Trigger conditions: An attacker sends a message or prompt to the nanobot instance instructing it to use its web-fetching capability to retrieve a URL pointing at an internal or restricted destination.
- Attack vector: Network-based; no authentication or user interaction is required beyond the ability to submit a message/prompt processed by the bot’s WebFetchTool.
- Impact: The bot can be coerced into fetching cloud provider metadata endpoints, localhost services, and RFC 1918 (private) addresses, enabling extraction of IAM credentials and internal service data reachable from the host running nanobot.
Affected software
- HKUDS nanobot (PyPI package
nanobot-ai): all versions before 0.3.0 - Version 0.3.0 and later are not affected (patched)
Severity
- CVSS v3.1 Base Score: 8.6 (High) — Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - CVSS v4.0 Base Score: 9.2 (Critical) — Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Mitigation and recommended actions
- Immediate: Upgrade nanobot (
nanobot-ai) to version 0.3.0 or later, which addresses the URL validation flaw. - If immediate upgrade is not possible:
- Restrict outbound network traffic from hosts running nanobot to prevent access to cloud metadata endpoints (e.g., 169.254.169.254) and internal/private IP ranges (RFC 1918).
- Enforce a strict allow-list of permitted external domains for any URL-fetching functionality exposed to the bot.
- Disable or restrict the WebFetchTool capability where not required, and monitor egress traffic for anomalous internal fetch attempts.

