Intel

AIKIDO-2026-627880

haystack-ai is vulnerable to Path Traversal

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

59

Medium Risk

This Affects:

PYTHONhaystack-ai
3.0.0 - 3.0.0
Fixed in 3.1.0
Are you affected? Scan for Free

TL;DR

The FileSystemToolResultStore component persists tool results on the local file system and later retrieves them by reference. Its read path does not constrain resolved references to the configured store root, so a reference containing path traversal segments can resolve outside that directory. When the reference is influenced by untrusted input, this allows reading arbitrary files the process can access. The fix hardens the read path so it only resolves references that stay within the configured store root.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use FileSystemToolResultStore to read tool results whose reference can be influenced by untrusted input.

Background info

haystack-ai is vulnerable to Path Traversal in versions 3.0.0 - 3.0.0.

How to fix this

Upgrade the haystack-ai library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform