Improper Input Validation in django-haystack Affects Multiple Versions
CVE-2026-105315

5.1MEDIUM

Key Information:

Vendor

WordPress

Vendor
CVE Published:
5 October 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2026-105315?

A security issue has been identified in django-haystack versions up to 3.3.0, specifically in the _to_python function found in the haystack/backends/elasticsearch_backend.py file. The vulnerability arises from improper handling of the 'result_class' argument, potentially allowing for the execution of arbitrary code through injected directives in dynamically evaluated contexts. Attackers can exploit this vulnerability remotely, exposing systems to significant risks. Users are strongly advised to upgrade to version 3.4.0, which includes a patch addressing this flaw.

Affected Version(s)

django-haystack 3.0

django-haystack 3.1

django-haystack 3.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Mohammedix88 (VulDB User)
.