{"answers":{"affected":"3 open source packages ship an affected version, including github.com/stacklok/toolhive.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58197 exists.","fix":"Upgrade github.com/stacklok/toolhive to 0.30.1 or later.","what":"CVE-2026-58197 is a high-severity missing authorization vulnerability in stacklok toolhive, published on 18 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-58197 and fix it if it is affected.\n\nWhat it is: CVE-2026-58197 is a high-severity missing authorization vulnerability in stacklok toolhive, published on 18 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58197 exists.\n\nAffected packages and fixed versions:\n- github.com/stacklok/toolhive (Go): affected all versions; fixed in 0.30.1\n- github.com/stacklok/toolhive (Go): affected all versions; fixed in 0.30.1\n- github.com/stacklok/toolhive (Go): affected all versions; fixed in 0.30.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-58197/ (Markdown: https://insights.sbomify.com/CVE-2026-58197/index.md)","id":"CVE-2026-58197","markdown":"https://insights.sbomify.com/CVE-2026-58197/index.md","name":"CVE-2026-58197","record":{"aliases":["GHSA-qg2g-g9w3-m5h8","GO-2026-6526"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read","data_modify","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"MCP server manager","requires_auth":"none","summary":"Attackers can exploit missing network isolation and authentication in ToolHive to access host services and manipulate MCP servers.","user_interaction":"required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"},{"id":"CWE-284","name":"Improper Access Control"}],"description":"ToolHive is a utility designed to simplify the deployment and management of Model Context Protocol servers. Prior to ToolHive CLI 0.30.1 and ToolHive Studio 0.38.0, locally run MCP server containers use the default network permission profile without network isolation, permitting access to host.docker.internal while ToolHive API and MCP proxy endpoints are reachable without authentication. A malicious or compromised MCP server can use the Docker gateway to contact host-local services, other ToolHive-managed MCP proxies, or the ToolHive control plane without escaping the container. This access can expose data and logs, invoke sibling MCP tools, alter process or workload state, and disrupt services. ToolHive Studio additionally sends network_isolation as false and overrides the backend's secure isolation default. This issue is fixed in ToolHive CLI 0.30.1 and ToolHive Studio 0.38.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ToolHive: containerized MCP servers can reach host services via host.docker.internal, enabling lateral movement","id":"CVE-2026-58197","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":3,"n_references":7,"next":{"headline":"ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer","id":"CVE-2026-58198"},"packages":[{"ecosystem":"Go","fixed":["0.30.1"],"introduced":["0"],"last_affected":[],"package":"github.com/stacklok/toolhive","purl":null,"source":"GHSA-qg2g-g9w3-m5h8"},{"ecosystem":"Go","fixed":["0.30.1"],"introduced":["0"],"last_affected":[],"package":"github.com/stacklok/toolhive","purl":"pkg:golang/github.com/stacklok/toolhive","source":"GHSA-qg2g-g9w3-m5h8"},{"ecosystem":"Go","fixed":["0.30.1"],"introduced":["0"],"last_affected":[],"package":"github.com/stacklok/toolhive","purl":"pkg:golang/github.com/stacklok/toolhive","source":"GO-2026-6526"}],"prev":{"headline":"ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation)","id":"CVE-2026-58196"},"products":["toolhive","toolhive-studio"],"published":"2026-09-18","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":"Go Vulnerability Database","prefix":"GO"},{"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":"total"},"state":"PUBLISHED","updated":"2026-09-18","vendors":["stacklok"]},"summary":"Attackers can exploit missing network isolation and authentication in ToolHive to access host services and manipulate MCP servers.","url":"https://insights.sbomify.com/CVE-2026-58197/"}