Read the docs
TI-2024-27972 Aliases CVE-2024-41950GHSA-hx9v-6r9f-w677

Insecure Jinja2 templates rendered in Haystack Components can lead to RCE

Priority LOW 37CWE-1336Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.

Summary

Haystack is an end-to-end LLM framework that allows you to build applications powered by LLMs, Transformer models, vector search and more. Haystack clients that let their users create and run Pipelines from scratch are vulnerable to remote code executions. Certain Components in Haystack use Jinja2 templates, if anyone can create and render that template on the client machine they run any code. The vulnerability has been fixed with Haystack `2.3.1`.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01171 67th percentileScored 2026-11-07
Fix Fixed haystack (deepset-ai): 2.3.1haystack-ai (PyPI): 2.3.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
deepset-aihaystackbefore 2.3.12.3.1Patch availableCNA
—haystack-ai (PyPI)before 2.3.12.3.1Patch availableGHSA-hx9v-6r9f-w677
  • haystack Vendordeepset-ai Affected before 2.3.1 Fixed in 2.3.1 Patch available CNA
  • haystack-ai (PyPI) Vendor— Affected before 2.3.1 Fixed in 2.3.1 Patch available GHSA-hx9v-6r9f-w677

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:deepset:haystack:*:*:*:*:*:*:*:*——Deepset
  • cpe:2.3:a:deepset:haystack:*:*:*:*:*:*:*:* Versions — — ·Deepset

Remediation

  • Fix · CNA haystack (deepset-ai) Fixed in 2.3.1
  • Fix · GHSA-hx9v-6r9f-w677 haystack-ai (PyPI) Fixed in 2.3.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-41950
  2. 2026-10-03 Alias added: GHSA-hx9v-6r9f-w677

References

  • TI-2026-83742 Path traversal in deepset-ai farm tokenizer loader CVSS 4.0MEDIUM 5.3
  • TI-2026-83743 Path traversal in deepset-ai farm Model Package Loader CVSS 4.0LOW 2.4

Sources