External risk intelligence

Django SQL Injection Vulnerability in Range and In Lookups

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-132092

Django is a widely used web framework primarily designed for building public-facing web applications and APIs. Because this vulnerability exists in common database lookup functions used to process user input in web applications, it is highly likely that vulnerable code paths are exposed to the public internet in standard deployments.

SQL Injection

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A recently disclosed vulnerability affects Django, a popular web framework, impacting its database query capabilities. This issue could allow attackers to inject malicious SQL code, potentially leading to unauthorized data access or manipulation within applications built with Django. The primary concern is confirming if our systems utilize the specific, vulnerable query types.

  • SQL injection risk in Django database queries.
  • Widespread framework use means potential exposure.
  • Confirm relevance and determine system exposure.

Attack Path

How an attacker could exploit the issue

An attacker can exploit this vulnerability by crafting malicious input that is processed by Django's database query system. This input would target specific lookup functions, such as `range` or `in`, when they are used with aliases or key transforms that include percent signs, potentially leading to unauthorized access or manipulation of the underlying database.

  • No authentication or special access needed.
  • Malicious input targets specific query lookups.
  • Risk of unauthorized data access or modification.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could affect web applications built with Django when specific database queries involving aliases or key transforms with percent signs are processed. When supported by the advisory, this could allow an attacker to inject malicious SQL code into the application's database queries.

  • Database integrity and application data.
  • Via crafted HTTP requests to the application.
  • Unauthorized access to or modification of data.

Operational Fix

Recommended remediation, mitigation, and detection steps

This SQL injection vulnerability in Django's `range` and `in` lookups, particularly when involving aliases or key transforms with percent signs, necessitates immediate attention from application and platform owners. The first practical step is to identify all Django deployments, assess their exposure and business criticality, and then ascertain the specific application or service owner responsible for remediation.

  • Application owners should lead remediation efforts.
  • Verify reachability and business criticality of Django instances.
  • Plan updates during the next scheduled maintenance window.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Django and why does this affect it?

Django is a high-level Python web framework used by developers to build robust, database-driven web applications and APIs quickly. It provides a built-in object-relational mapper (ORM) that simplifies database interactions. This vulnerability impacts that core ORM layer, specifically the query-building logic, meaning any application relying on Django's standard database interface could potentially be affected if it handles specific query types.

What does SQL injection mean for CVE-2026-132092?

This vulnerability is classified as CWE-89, or improper neutralization of special elements used in an SQL command. In plain terms, it means the application fails to properly clean user-provided data before including it in a database query. For CVE-2026-132092, an attacker can manipulate specific lookups to inject their own database commands, potentially allowing them to bypass security controls, view private records, or modify data directly in the backend database.

How is this SQL injection vulnerability triggered?

The flaw is triggered when an application uses the `range` or `in` database lookups in conjunction with query aliases or key transforms that contain percent signs. Importantly, this issue does not occur during standard, safe database interactions; it requires the specific combination of those lookup functions and input containing the sensitive percent character to bypass the framework's typical protection mechanisms.

Is my application at risk if it uses Django?

According to Halo Surface Signal, there is a high likelihood of exposure because Django is predominantly used for public-facing web applications. Since these vulnerable database lookups often process user-supplied data from incoming web requests, applications exposed to the internet are at a higher risk of being targeted than internal-only services that lack broad, untrusted input vectors.

What should I do first to address this?

Your first step is to inventory all services running Django to determine which versions are deployed, as older, unsupported series may also be affected. Once identified, consult the official Django security releases to verify if your version requires an update. Coordinate with your application owners to prioritize patching instances that handle sensitive data or are accessible via the public internet.

References