CVE-2026-49138: Nanobot contains a server-side request forgery vulnerability in the web_fetch tool
Nanobot prior to version 0.2.1 contains a server-side request forgery vulnerability in the webfetch 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.
Published Jun 1, 2026 · Updated Jul 27, 2026
Affected packages
nanobot-ai
- Ecosystem
- PyPI
- Affected
- < 0.2.1
- Fixed in
- 0.2.1
- Check
pip show nanobot-ai
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to faketut.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-49138
- https://github.com/HKUDS/nanobot/pull/3928
- https://github.com/HKUDS/nanobot/commit/545294c62c0947da40eb5b65288aaf02b5fdf632
- https://github.com/HKUDS/nanobot/releases/tag/v0.2.1
- https://www.vulncheck.com/advisories/nanobot-ssrf-via-web-fetch-tool-redirect-following
- https://github.com/advisories/GHSA-434r-7c99-hwf3
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
