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

    Threat Intelligence

    EPSS
    0.04% (12th 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 ID SNYK-PYTHON-HAYSTACKAI-7577230
  • published 1 Aug 2024
  • disclosed 31 Jul 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
2.3 low
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None