CVE-2026-105315: django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection

Published Oct 5, 2026
·
Updated

A vulnerability has been found in django-haystack up to 3.3.0. Affected is the function topython of the file haystack/backends/elasticsearchbackend.py of the component morelikethis Template Tag Handler. Such manipulation of the argument resultclass 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.

Affected Software

1 affected component
pypi/django-haystack<=3.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade django-haystack to a version that resolves this vulnerability.

    Fixed in 3.4.0Patch eb05f193c9771a68dcc8cfac6674a0d48a52ee9d

Event History

Oct 5, 2026
CVE Published
via MITRE·12:45 PM
Data Sourced
via MITRE·12:45 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Mar 11, 58731
Event
via NVD·07:44 AM

Frequently Asked Questions

1

Which deployments should be prioritized for remediation?

Prioritize deployments using django-haystack versions up to and including 3.3.0, particularly where the more_like_this template tag handler is in use.

2

What level of attacker access is reflected in the severity assessment?

The CVSS vector lists privileges required as high, while the vulnerability report states that exploitation can be launched remotely. The issue involves manipulation of the result_class argument passed to dynamically evaluated code.

3

Is public exploitation a concern, and what is the recommended fix?

An exploit has been publicly disclosed and may be used. Upgrade django-haystack to version 3.4.0; the referenced patch is eb05f193c9771a68dcc8cfac6674a0d48a52ee9d.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203