{"answers":{"affected":"3 open source packages ship an affected version, including nanobot-ai.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49138 exists.","fix":"Upgrade nanobot-ai to 0.2.1 or later.","what":"CVE-2026-49138 is a medium-severity server-side request forgery vulnerability in HKUDS nanobot, published on 1 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49138 and fix it if it is affected.\n\nWhat it is: CVE-2026-49138 is a medium-severity server-side request forgery vulnerability in HKUDS nanobot, published on 1 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49138 exists.\n\nAffected packages and fixed versions:\n- nanobot-ai (PyPI): affected all versions; fixed in 0.2.1\n- nanobot-ai (PyPI): affected all versions; fixed in 0.2.1\n- nanobot-ai (PyPI): affected all versions; fixed in 0.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-49138/ (Markdown: https://insights.sbomify.com/CVE-2026-49138/index.md)","id":"CVE-2026-49138","markdown":"https://insights.sbomify.com/CVE-2026-49138/index.md","name":"CVE-2026-49138","record":{"aliases":["GHSA-434r-7c99-hwf3","PYSEC-2026-3580"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python AI agent library","requires_auth":"low_privilege","summary":"Remote attackers can exploit redirect handling in the web_fetch tool to access internal network hosts, requiring an upgrade to Nanobot.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Nanobot \u003c 0.2.1 SSRF via web_fetch Tool Redirect Following","id":"CVE-2026-49138","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Nanobot \u003c 0.2.1 SSRF via Microsoft Teams Channel serviceUrl Poisoning","id":"CVE-2026-49139"},"packages":[{"ecosystem":"PyPI","fixed":["0.2.1"],"introduced":["0"],"last_affected":[],"package":"nanobot-ai","purl":null,"source":"GHSA-434r-7c99-hwf3"},{"ecosystem":"PyPI","fixed":["0.2.1"],"introduced":["0"],"last_affected":[],"package":"nanobot-ai","purl":"pkg:pypi/nanobot-ai","source":"GHSA-434r-7c99-hwf3"},{"ecosystem":"PyPI","fixed":["0.2.1"],"introduced":["0"],"last_affected":[],"package":"nanobot-ai","purl":"pkg:pypi/nanobot-ai","source":"PYSEC-2026-3580"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-49137"},"products":["nanobot"],"published":"2026-06-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["HKUDS"]},"summary":"Remote attackers can exploit redirect handling in the web_fetch tool to access internal network hosts, requiring an upgrade to Nanobot.","url":"https://insights.sbomify.com/CVE-2026-49138/"}