---
id: CVE-2026-49138
title: >-
  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 …
summary: >-
  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 …
severity: medium
cvss: 5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N'
cwe:
  - CWE-918
vendor: HKUDS
product: nanobot
affected:
  - nanobot < 0.2.1
patched:
  - nanobot-ai 0.2.1
published: '2026-06-01'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:18.497'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-49138'
references:
  - url: >-
      https://github.com/HKUDS/nanobot/commit/545294c62c0947da40eb5b65288aaf02b5fdf632
    label: disclosure@vulncheck.com
  - url: 'https://github.com/HKUDS/nanobot/pull/3928'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/HKUDS/nanobot/releases/tag/v0.2.1'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/nanobot-ssrf-via-web-fetch-tool-redirect-following
    label: disclosure@vulncheck.com
  - url: 'https://github.com/HKUDS/nanobot/pull/3928'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-49138'
  - url: 'https://github.com/HKUDS/nanobot'
tags:
  - nvd
  - cve.org
  - exploit-available
  - osv
  - pip
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-02T12:23:27.891062Z'
epss: 0.00355
epssPercentile: 0.29074
aliases:
  - GHSA-434r-7c99-hwf3
ecosystem: pip
ingestedAt: '2026-07-27T19:08:53.926Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-49138)

Affected packages:

- `nanobot-ai < 0.2.1`

Patched in:

- `nanobot-ai 0.2.1`

Source: https://osv.dev/vulnerability/GHSA-434r-7c99-hwf3
