Skip to content
Heist/ feed
Back to feed
Medium

Nanobot < 0.2.1 SSRF via web_fetch Tool Redirect Following

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-49138
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:27 UTC · Revision 1

Source evidence

Nanobot < 0.2.1 SSRF via web_fetch Tool Redirect Following

core-osv · Original source

Published 1 Jun 2026, 19:41 UTC

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.

osv:CVE-2026-49138
Complete source record
{
  "id": "d09b980ee39f4d2d4172c058e3b75e70245ab4cb6c822be4f9fdebb80c5254f3",
  "url": "https://osv.dev/vulnerability/CVE-2026-49138",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Nanobot < 0.2.1 SSRF via web_fetch Tool Redirect Following",
    "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 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.",
    "evidence": "osv:CVE-2026-49138",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-49138",
      "aliases": [
        "CVE-2026-49138",
        "GHSA-434r-7c99-hwf3",
        "PYSEC-2026-3580"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hkuds/nanobot",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f309982bb0a2dca76dd038473ee6f1be803bd503"
                },
                {
                  "fixed": "545294c62c0947da40eb5b65288aaf02b5fdf632"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.2.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f309982bb0a2dca76dd038473ee6f1be803bd503"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.2.1"
                  },
                  {
                    "range": [
                      {
                        "fixed": "545294c62c0947da40eb5b65288aaf02b5fdf632"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.0",
            "v0.1.5.post3",
            "v0.1.5.post2",
            "v0.1.5.post1",
            "v0.1.5",
            "v0.1.4.post6",
            "v0.1.4.post4",
            "v0.1.4.post3",
            "v0.1.4.post2",
            "v0.1.4.post1",
            "v0.1.4",
            "v0.1.3.post6",
            "v0.1.3.post5",
            "v0.1.3.post4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-49138.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.074591084Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49138.json",
        "https://github.com/HKUDS/nanobot/releases/tag/v0.2.1",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-49138",
        "https://www.vulncheck.com/advisories/nanobot-ssrf-via-web-fetch-tool-redirect-following",
        "https://github.com/HKUDS/nanobot/pull/3928",
        "https://github.com/HKUDS/nanobot/commit/545294c62c0947da40eb5b65288aaf02b5fdf632",
        "https://github.com/HKUDS/nanobot"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-918"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49138.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-49138",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506672,
  "published_at": "2026-06-01T19:41:51.141+00:00"
}