What’s Vulnerable › Vulnerabilities
CVE-2026-105315: django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-05 · updated 2026-10-06
- Weakness: CWE-94
Description
A vulnerability has been found in django-haystack up to 3.3.0. Affected is the function _to_python of the file haystack/backends/elasticsearch_backend.py of the component more_like_this Template Tag Handler. Such manipulation of the argument result_class leads to improper neutralization of directives in dynamically evaluated code. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.4.0 is able to address this issue. The name of the patch is eb05f193c9771a68dcc8cfac6674a0d48a52ee9d. It is suggested to upgrade the affected component.
Affected products
- django-haystack: 3.0, 3.1, 3.2, 3.3.0
References
- https://github.com/django-haystack/django-haystack/
- https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d
- https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0
- https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv
- https://vuldb.com/cve/CVE-2026-105315
- https://vuldb.com/submit/978642
- https://vuldb.com/vuln/413523
- https://vuldb.com/vuln/413523/cti
Get alerted when CVE-2026-105315 or the next vulnerability affects your stack