Skip to content
Heist/ feed
Back to feed
Low

django-haystack — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-105315

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.

Products
django-haystack
Affected versions
3.2.1-1, 3.3.0-1, 3.3.0-2
Fixed versions
Not specified
CVEs
CVE-2026-105315
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 03:40 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-105315

core-osv · Original source

Published 5 Oct 2026, 13:16 UTC

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.

osv:DEBIAN-CVE-2026-105315

django-haystack

Fixed versions: Not specified

django-haystack

Fixed versions: Not specified

django-haystack

Fixed versions: Not specified

Complete source record
{
  "id": "da9dd5cf8453f537b73b0cf493bd618a9233d9253a0e0a59c76843796a1c846d",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-105315",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-105315",
    "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 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.",
    "evidence": "osv:DEBIAN-CVE-2026-105315",
    "products": [
      {
        "name": {
          "value": "django-haystack",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.3.0-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "django-haystack",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.0-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "django-haystack",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "DEBIAN-CVE-2026-105315",
      "aliases": [
        "DEBIAN-CVE-2026-105315"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "django-haystack",
            "purl": "pkg:deb/debian/django-haystack?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.2.1-1",
            "3.3.0-1",
            "3.3.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-105315.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "django-haystack",
            "purl": "pkg:deb/debian/django-haystack?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.3.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-105315.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "django-haystack",
            "purl": "pkg:deb/debian/django-haystack?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.3.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-105315.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-07T09:47:29.798573870Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-105315"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-105315"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-105315",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 94648,
  "published_at": "2026-10-05T13:16:52.823+00:00"
}