Home / django-haystack / django-haystack / CVE-2026-105315
CVE-2026-105315: is it exploited, and which versions of django-haystack are affected and fixed?
CVE-2026-105315 is a code injection through eval vulnerability in django-haystack. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: django-haystack 3.0, django-haystack 3.1, django-haystack 3.2 and 1 more (CVE record by VulDB). Fixed in 3.4.0 (CVE record by VulDB). Severity: Medium (5.1, CVSS 4.0, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:06 UTC.
What is CVE-2026-105315?
django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
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.
From the CVE record by VulDB, last updated October 5, 2026, 13:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| django-haystack | 3.0 3.1 3.2 3.3.0 | 3.4.0 |
As the CVE record by VulDB states it, last updated October 5, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-105315?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.1 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| Medium 4.7 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| Medium 5.8 | CVSS 2.0 | AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-105315 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, October 5, 2026)
- EPSS
- 0.25% probability of exploitation activity in the next 30 days, percentile 18.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- VDB-413523 | django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection vdb-entry, technical-description
- VDB-413523 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2026-105315 | CVE Analysis and Report third-party-advisory
- Submit #978642 | django-haystack 3.3.0 Code Execution third-party-advisory
- https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv exploit
- https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d patch
- https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0 patch
- https://github.com/django-haystack/django-haystack/ product
Who found and reported it?
- Mohammedix88 (VulDB User) (reporter)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 5, 2026
- Published
- October 5, 2026, 12:45 UTC
- CVE record updated
- October 5, 2026, 13:27 UTC by VulDB
- NVD
- Deferred, last modified October 6, 2026, 15:04 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-105315
Is CVE-2026-105315 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.25% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of django-haystack are affected by CVE-2026-105315?
django-haystack 3.0, django-haystack 3.1, django-haystack 3.2 and django-haystack 3.3.0, per the CVE record by VulDB. The tables above give every range the sources list.
Which version fixes CVE-2026-105315?
3.4.0, per the CVE record by VulDB. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-105315?
Medium (5.1, CVSS 4.0, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2026-105315?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.