Intel

AIKIDO-2026-745297

@genkit-ai/tools-common is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

65

Medium Risk

This Affects:

JS@genkit-ai/tools-common
0.9.0 - 1.39.0
Fixed in 1.40.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

@genkit-ai/tools-common is vulnerable to Path Traversal in versions 0.9.0 - 1.39.0.

How to fix this

Upgrade the @genkit-ai/tools-common library to the patch version.