PYSEC-2026-1447

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/haystack-ai/PYSEC-2026-1447.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-1447
Aliases
Published
2026-07-07T14:34:38.082423Z
Modified
2026-07-07T17:47:42.211158613Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Insecure Jinja2 templates rendered in Haystack Components can lead to RCE
Details

Impact

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.

Patches

The problem has been fixed with PRs deepset-ai/haystack#8095 and deepset-ai/haystack#8096.

Both have been released with Haystack 2.3.1.

Workarounds

Prevent users from running the affected Components, or only let users use preselected templates.

References

The list of impacted Components can be found in the release notes for 2.3.1. https://github.com/deepset-ai/haystack/releases/tag/v2.3.1

References

Affected packages

PyPI / haystack-ai

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.1

Affected versions

2.*
2.0.0a1
2.0.0a2
2.0.0a3
2.0.0b1
2.0.0b2
2.0.0b3
2.0.0b4
2.0.0b5
2.0.0b6
2.0.0b7
2.0.0b8
2.0.0rc1
2.0.0
2.0.1rc1
2.0.1rc2
2.0.1
2.1.0rc1
2.1.0rc2
2.1.0
2.1.1rc1
2.1.1
2.1.2rc1
2.1.2
2.2.0rc1
2.2.0rc2
2.2.0
2.2.1rc1
2.2.1
2.2.2rc1
2.2.2
2.2.3
2.2.4rc1
2.2.4
2.3.0rc1
2.3.0rc2
2.3.0
2.3.1rc1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/haystack-ai/PYSEC-2026-1447.yaml"