CVE-2026-105315
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.
Weakness
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-10-05 |
Timeline
- 2026-07-15GitHub advisory published (GHSA-r3hx-x5rh-p9vv)82 days before publication
- 2026-10-05Published by the CNA12:45 UTC
- 2026-10-05CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-r3hx-x5rh-p9vv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI django-haystack | before 3.4.0 | 3.4.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| django-haystack django-haystack |
References
- 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://github.com/django-haystack/django-haystack/
- https://vuldb.com/cve/CVE-2026-105315
- https://vuldb.com/submit/978642
- https://vuldb.com/vuln/413523
- https://vuldb.com/vuln/413523/cti
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-105315'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-105315'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-105315'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-105315'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).