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

Low 2.4 Published Updated

An attacker with local access can read secrets from unencrypted run config files in ToolHive, exposing sensitive credentials.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-47274?

CVE-2025-47274 is a low-severity vulnerability in stacklok toolhive, published on 12 May 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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).

Weakness: CWE-311

Which versions are affected by CVE-2025-47274?

How do I fix CVE-2025-47274?

No fix has been published for CVE-2025-47274 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-47274 being exploited?

There is no known exploitation of CVE-2025-47274 in the wild and no public exploit code.

Sources

Also known as GHSA-xj5p-w2v5-fjm6.

Is CVE-2025-47274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free