CVE catalog

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 H

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.25% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandjango-haystacksid3.3.0-2vulnerable
Debiandjango-haystackforky3.3.0-2vulnerable
Debiandjango-haystacktrixie3.3.0-2vulnerable
Debiandjango-haystackbookworm3.2.1-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandjango-haystacksourcesid(unfixed)not yet assignedNot reported[1150169]
Debiandjango-haystacksourceforky(unfixed)not yet assignedNot reported[1150169]
Debiandjango-haystacksourcetrixie(unfixed)not yet assignedNot reported[1150169]
Debiandjango-haystacksourcebookworm(unfixed)not yet assignedNot reported[1150169]

[Debian bug #1150169]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [django-haystack]

    Details (2)
    • 3.2.1-1 · all · bookworm

      Affected

      nvd · django-haystack · debian · bookworm; nvd · django-haystack · debian · 12

    • 3.2.1-1 · all · bookworm

      Affected

      nvd · django-haystack · debian · bookworm; nvd · django-haystack · debian · 12

  • Source package: [django-haystack]

    Details (2)
    • 3.2.1-1 · all · bookworm

      Affected

      nvd · django-haystack · debian · bookworm; nvd · django-haystack · debian · 12

    • 3.2.1-1 · all · bookworm

      Affected

      nvd · django-haystack · debian · bookworm; nvd · django-haystack · debian · 12

[Debian 13 (Trixie)]

  • Source package: [django-haystack]

    Details (2)
    • 3.3.0-2 · all · trixie

      Affected

      nvd · django-haystack · debian · 13

    • 3.3.0-2 · all · trixie

      Affected

      nvd · django-haystack · debian · 13

  • Source package: [django-haystack]

    Details (2)
    • 3.3.0-2 · all · trixie

      Affected

      nvd · django-haystack · debian · 13

    • 3.3.0-2 · all · trixie

      Affected

      nvd · django-haystack · debian · 13

Observed:

References