Intel

AIKIDO-2026-745297

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

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 20, 2026
July 20, 2026

65

CVE Score

Medium

Path Traversal

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.

How do I fix this?

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

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.

Versions

0.9.0 - 1.39.0

Fixed in 1.40.0

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea