A vulnerability has been found in django-haystack up to 3.3.0. (CVE-2026-105315)
Description
A vulnerability exists in django-haystack up to version 3.3.0 in the _to_python function of haystack/backends/elasticsearch_backend.py. This flaw involves improper neutralization of directives in dynamically evaluated code due to manipulation of the result_class argument. The vulnerability can be exploited remotely. An upgrade to version 3.4.0 addresses this issue. The vulnerability has a medium severity rating with a CVSS score of 4.7.
CVSS v3.1
Score 4.7medium
Affected software
pkg:deb/ubuntu/django-haystack?arch=source&distro=xenialpkg:deb/ubuntu/django-haystack?arch=source&distro=bionicpkg:deb/ubuntu/django-haystack?arch=source&distro=focalpkg:deb/ubuntu/django-haystack?arch=source&distro=jammypkg:deb/ubuntu/django-haystack?arch=source&distro=noblepkg:deb/ubuntu/django-haystack?arch=source&distro=stonkingpkg:deb/ubuntu/django-haystack?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in django-haystack up to version 3.3.0 affects the _to_python function within the more_like_this Template Tag Handler in haystack/backends/elasticsearch_backend.py. Manipulation of the argument result_class leads to improper neutralization of directives in dynamically evaluated code, which can be exploited remotely. The issue is fixed in version 3.4.0 with the patch identified by commit eb05f193c9771a68dcc8cfac6674a0d48a52ee9d. The CVSS 3.1 base score is 4.7, indicating medium severity.
Potential Impact
The vulnerability allows remote attackers to manipulate the result_class argument, potentially leading to improper neutralization of directives in dynamically evaluated code. This can result in limited confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L).
Mitigation Recommendations
Upgrade django-haystack to version 3.4.0 or later to address this vulnerability. The patch is available and should be applied to remediate the issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-105315
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad3f4f22cdf04f6566575df
Added to database: 10/17/2026, 22:21:38 UTC
Last enriched: 10/17/2026, 22:40:07 UTC
Last updated: 10/17/2026, 22:40:07 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.