Security fixes
This release fixes seven security advisories: five Medium and two Low. Only GHSA-5rmv-vp45-994h and GHSA-g3h2-7q8p-c2jv affect a default configuration (thv serve on loopback TCP without authentication); each of the others needs a non-default setting, named below.
thv serve API (cross-site requests and DNS rebinding from a web page in the user's browser)
- GHSA-5rmv-vp45-994h (5.3): a DNS-rebinding page could read GET responses from the API, including workload environment variables.
- GHSA-g3h2-7q8p-c2jv (4.2): a page could make the skill and plugin content routes fetch references it chose, reach private registries through skill pulls, and receive
GIT_TOKEN. - GHSA-9x86-xxq3-6xmj (3.1, Low): with a non-loopback
--host, the API allowed everyOrigin.
Workloads and proxies
- GHSA-v7q7-97w6-v6mc (5.2): with network isolation on native Linux Docker, a workload could reach host services through the internal network's gateway, bypassing the egress proxy.
- GHSA-cxgm-qmwm-pcc6 (4.8): a workload started with
thv run --from-configfrom a RunConfig withouthostlistened on every interface. - GHSA-j99q-29fc-6fh5 (3.1, Low):
thv llm proxy startforwarded cross-site requests to the LLM gateway with the user's token.
vMCP code mode (codeMode.enabled: true)
- GHSA-jfhm-5xjh-87wv (6.5): one script could allocate memory until the vMCP process was killed.
GHSA-v7q7-97w6-v6mc was reported by kemrec. The other six were found by Anthropic's OSS scanner, which also reported GHSA-v7q7-97w6-v6mc.
Behaviour changes
thv serve:
- A client that reaches the API through a DNS name other than
localhost, such ashost.docker.internal, a reverse proxy or a Kubernetes service name, gets HTTP 403. Add the name with the new--allowed-originsflag. - On a non-loopback
--hostwithout--allowed-origins, browser requests that carry anOriginheader get HTTP 403. --allowed-originsentries must bescheme://host[:port]. A non-empty list replaces the loopback defaults.- Skill pulls refuse registries addressed as
localhost, a loopback or private IP, or a numeric name such as127.1, as plugin pulls already did. - New
GIT_TOKEN_HOSTSlimitsGIT_TOKENto the listed hosts. When it is unset,thvstill sends the token and logs a WARN once per host; a future release will stop sending it.
Workloads:
- An empty
hostin a RunConfig now means127.0.0.1. Ansseorstreamable-httpcontainer started from such a RunConfig is recreated once on its next start. - With network isolation on Docker, an internal network created by an earlier version keeps the host reachable, and ToolHive logs a WARN when it reuses it. Remove the workload and run it again to recreate the network.
thv llm proxy startanswers HTTP 403 to requests that carry anOriginheader or a cross-siteSec-Fetch-Siteheader.
vMCP code mode:
- Each script runs in a sandbox process. On Linux a script is limited to 128 MiB and fails with
script exceeded its memory limit (128 MiB)above it. - At most 2 scripts run at once per vMCP server by default; set
codeMode.maxConcurrentScriptsto change it.codeMode.sandbox: falseruns scripts in-process as before, without a memory limit.
What's Changed
- Use a refused port for unreachable test endpoints by @rdimitrov in https://github.com/stacklok/toolhive/pull/7386
- Add opt-in sessionInit cap for vMCP session init by @ChrisJBurns in https://github.com/stacklok/toolhive/pull/7392
- Document spec.resources as proxy container sizing by @bharathvemula in https://github.com/stacklok/toolhive/pull/7108
- Derive swag generator version from go.mod by @ChrisJBurns in https://github.com/stacklok/toolhive/pull/7393
- Cap response header size on CIMD fetches by @rdimitrov in https://github.com/stacklok/toolhive/pull/7394
- Record oss-scanner finding for CIMD header cap by @rdimitrov in https://github.com/stacklok/toolhive/pull/7395
- Reject mutating webhook patches that rewrite tool name or method by @Tyagiquamar in https://github.com/stacklok/toolhive/pull/6938
- Carry multi_valued_claims through vMCP authz path by @bharathvemula in https://github.com/stacklok/toolhive/pull/7127
- Source Cedar claims from the upstream ID token for opaque access tokens by @JAORMX in https://github.com/stacklok/toolhive/pull/6052
- Remove deprecated OBO enterprise hooks and sentinels by @tgrunnagle in https://github.com/stacklok/toolhive/pull/7346
- Keep a vMCP backend whose user has not connected its provider by @jhrozek in https://github.com/stacklok/toolhive/pull/7418
- List a sign-in tool for a vMCP backend the user has not connected by @jhrozek in https://github.com/stacklok/toolhive/pull/7419
- Point Antigravity client at ~/.gemini/config by @samuv in https://github.com/stacklok/toolhive/pull/7409
- Skip the sandbox memory limit in race builds by @rdimitrov in https://github.com/stacklok/toolhive/pull/7425
- Let an embedder replace -32021 with a link result by @jhrozek in https://github.com/stacklok/toolhive/pull/7424
- Add typ and claims to the e2e mock OIDC issuer by @jhrozek in https://github.com/stacklok/toolhive/pull/7428
- Share ID-JAG assertion rules as a grant profile by @jhrozek in https://github.com/stacklok/toolhive/pull/7429
- Fix the sandbox soft limit and stale isolation E2E by @rdimitrov in https://github.com/stacklok/toolhive/pull/7431
- Update DCR config comment for SSRF guard by @reyortiz3 in https://github.com/stacklok/toolhive/pull/7417
- Release v0.72.0 by @toolhive-release-app[bot] in https://github.com/stacklok/toolhive/pull/7427
New Contributors
- @Tyagiquamar made their first contribution in https://github.com/stacklok/toolhive/pull/6938
Full Changelog: https://github.com/stacklok/toolhive/compare/v0.71.0...v0.72.0