Skip to content
Heist/ feed
Medium

django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-105315

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-105315

django-haystack

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "cpes": [
      "cpe:2.3:a:django-haystack:django-haystack:*:*:*:*:*:*:*:*"
    ],
    "vendor": "n/a",
    "modules": [
      "more_like_this Template Tag Handler"
    ],
    "product": "django-haystack",
    "versions": [
      {
        "status": "affected",
        "version": "3.0"
      },
      {
        "status": "affected",
        "version": "3.1"
      },
      {
        "status": "affected",
        "version": "3.2"
      },
      {
        "status": "affected",
        "version": "3.3.0"
      },
      {
        "status": "unaffected",
        "version": "3.4.0"
      }
    ]
  }
]
Related CVEs
CVE-2026-105315

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#8622 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement