@genkit-ai/tools-common is vulnerable to Path Traversal
65
Medium Risk
The local file dataset store in the Genkit tools-common package builds filesystem paths by joining a caller-supplied dataset ID directly onto the store root. Dataset IDs reach the store from unauthenticated HTTP/tRPC requests to the Dev UI / tools API server, which also listens on all network interfaces by default. A reachable attacker can supply IDs containing path separators, .. traversal segments, or null bytes to read, overwrite, or delete files outside the intended dataset directory. The fix validates dataset IDs through a resolver that rejects traversal characters and confirms the resolved path stays within the store root, tightens the dataset tRPC inputs, and binds the server to the loopback interface by default.
You are affected if you are using a version that falls within the vulnerable range and you run the local Genkit Dev UI / tools API server that exposes the file-backed dataset store.
@genkit-ai/tools-common is vulnerable to Path Traversal in versions 0.9.0 - 1.39.0.
Upgrade the @genkit-ai/tools-common library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant