Improper Control of Generation of Code ('Code Injection') Affecting haystack-ai package, versions [,2.3.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-HAYSTACKAI-7577230
  • published1 Aug 2024
  • disclosed31 Jul 2024
  • creditUnknown

Introduced: 31 Jul 2024

CVE-2024-41950  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade haystack-ai to version 2.3.1 or higher.

Overview

haystack-ai is a LLM framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data.

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the rendering of user-supplied Jinja2 templates.

CVSS Scores

version 4.0
version 3.1