---
id: CVE-2026-105315
title: A vulnerability has been found in django-haystack up to 3.3.0
summary: >-
  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
  argu…
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-94
  - CWE-95
product: django-haystack
affected:
  - django-haystack 3.0
  - django-haystack 3.1
  - django-haystack 3.2
  - django-haystack 3.3.0
published: '2026-10-05'
updated: '2026-10-05'
sourceUpdated: '2026-10-05T14:17:20.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105315'
references:
  - url: 'https://github.com/django-haystack/django-haystack/'
    label: cna@vuldb.com
  - url: >-
      https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d
    label: cna@vuldb.com
  - url: 'https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0'
    label: cna@vuldb.com
  - url: >-
      https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-105315'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/978642'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/413523'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/413523/cti'
    label: cna@vuldb.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-05T13:27:10.308923Z'
ingestedAt: '2026-10-05T13:20:09.438Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
