Skip to content

v0.72.0

Choose a tag to compare

@toolhive-release-app toolhive-release-app released this 01 Dec 15:39
· 35 commits to main since this release
0baa497

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 every Origin.

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-config from a RunConfig without host listened on every interface.
  • GHSA-j99q-29fc-6fh5 (3.1, Low): thv llm proxy start forwarded 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 as host.docker.internal, a reverse proxy or a Kubernetes service name, gets HTTP 403. Add the name with the new --allowed-origins flag.
  • On a non-loopback --host without --allowed-origins, browser requests that carry an Origin header get HTTP 403.
  • --allowed-origins entries must be scheme://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 as 127.1, as plugin pulls already did.
  • New GIT_TOKEN_HOSTS limits GIT_TOKEN to the listed hosts. When it is unset, thv still sends the token and logs a WARN once per host; a future release will stop sending it.

Workloads:

  • An empty host in a RunConfig now means 127.0.0.1. An sse or streamable-http container 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 start answers HTTP 403 to requests that carry an Origin header or a cross-site Sec-Fetch-Site header.

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.maxConcurrentScripts to change it. codeMode.sandbox: false runs scripts in-process as before, without a memory limit.

What's Changed

  • Use a refused port for unreachable test endpoints by @rdimitrov in #7386
  • Add opt-in sessionInit cap for vMCP session init by @ChrisJBurns in #7392
  • Document spec.resources as proxy container sizing by @bharathvemula in #7108
  • Derive swag generator version from go.mod by @ChrisJBurns in #7393
  • Cap response header size on CIMD fetches by @rdimitrov in #7394
  • Record oss-scanner finding for CIMD header cap by @rdimitrov in #7395
  • Reject mutating webhook patches that rewrite tool name or method by @Tyagiquamar in #6938
  • Carry multi_valued_claims through vMCP authz path by @bharathvemula in #7127
  • Source Cedar claims from the upstream ID token for opaque access tokens by @JAORMX in #6052
  • Remove deprecated OBO enterprise hooks and sentinels by @tgrunnagle in #7346
  • Keep a vMCP backend whose user has not connected its provider by @jhrozek in #7418
  • List a sign-in tool for a vMCP backend the user has not connected by @jhrozek in #7419
  • Point Antigravity client at ~/.gemini/config by @samuv in #7409
  • Skip the sandbox memory limit in race builds by @rdimitrov in #7425
  • Let an embedder replace -32021 with a link result by @jhrozek in #7424
  • Add typ and claims to the e2e mock OIDC issuer by @jhrozek in #7428
  • Share ID-JAG assertion rules as a grant profile by @jhrozek in #7429
  • Fix the sandbox soft limit and stale isolation E2E by @rdimitrov in #7431
  • Update DCR config comment for SSRF guard by @reyortiz3 in #7417
  • Release v0.72.0 by @toolhive-release-app[bot] in #7427

New Contributors

Full Changelog: v0.71.0...v0.72.0