@genkit-ai/tools-common is vulnerable to Path Traversal
65
CVE Score
Medium
Path Traversal
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.
Upgrade the @genkit-ai/tools-common library to the patch version.
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.
0.9.0 - 1.39.0
Fixed in 1.40.0@genkit-ai/tools-common is vulnerable to Path Traversal in versions 0.9.0 - 1.39.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.