Intel

AIKIDO-2025-10345

haystack-ai is vulnerable to Regular Expression Denial-of-service (ReDoS)

Regular Expression Denial-of-service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 3, 2025

60

Medium Risk

This Affects:

Pythonhaystack-ai
2.9.0 - 2.13.2
Fixed in 2.14.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Regular Expression Denial-of-service (ReDoS) due to catastrophic backtracking in the QUOTE_SPANS_RE regex pattern, which inefficiently handles malicious inputs containing mismatched or excessive quote characters. An attacker can exploit this vulnerability by crafting a specially designed string with unbalanced quotes, causing the regex engine to perform excessive backtracking, leading to prolonged CPU consumption and potentially denying service to legitimate users.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

haystack-ai is vulnerable to Regular Expression Denial-of-service (ReDoS) in versions 2.9.0 - 2.13.2.

How to fix this

Upgrade the haystack-ai library to the patch version.