Skip to main content

A vulnerability has been found in django-haystack up to 3.3.0. (CVE-2026-105315)

0
Medium
Published: 10/05/2026 (10/05/2026, 13:16:00 UTC)
Source: GCVE Database
Product: django-haystack

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L

Affected software

Ubuntu:16.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=xenial
Affected versions
=2.4.0-2=2.4.1-1
Ubuntu:18.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=bionic
Affected versions
=2.6.1-1=2.7.0-1=2.8.0-1
Ubuntu:20.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=focal
Affected versions
=2.8.1-3
Ubuntu:22.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=jammy
Affected versions
=3.0-1=3.1.1-1
Ubuntu:24.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=noble
Affected versions
=3.2.1-1
Ubuntu:26.10more threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=stonking
Affected versions
=3.3.0-2build1
Ubuntu:26.04:LTSmore threats →ghsa
django-haystack
pkg:deb/ubuntu/django-haystack?arch=source&distro=resolute
Affected versions
=3.3.0-2=3.3.0-2build1

Run 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

AILast updated: 10/17/2026, 22:40:07 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses