# CVE-2026-132092: Django SQL injection in range and in lookups

Source: https://junglewise.ai/threats/cve-2026-132092-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-12-02. Updated: 2026-12-02  
License: CC BY 4.0 with a link back

CVE-2026-132092 · Severity: critical · CVSS 9.8 · Published 2026-12-02

Django is a popular Python web framework used to build web applications. A SQL injection vulnerability in Django's database query lookups allows attackers to inject malicious SQL code when queries involve aliases or key transforms with percent signs, potentially leading to unauthorized data access or manipulation of the application's database.

Technologies: [Django Software Foundation Django](https://junglewise.ai/threats/technologies/django-software-foundation-django). Vendors: [Django Software Foundation](https://junglewise.ai/threats/vendors/django-software-foundation).

## Quick answers

**Is CVE-2026-132092 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-132092 being exploited in the wild.

**How severe is CVE-2026-132092?** Critical severity, with a CVSS score of 9.8, published 2 December 2026.

**Which products and versions are affected?** Django Software Foundation Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20.

**Is there a fix for CVE-2026-132092?** Yes: fixed in Django 6.1.4, 6.0.11, 5.2.20. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-132092 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-132092?** Check whether you run Django Software Foundation Django at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Django 6.1.4, 6.0.11, 5.2.20

## Technical details

The vulnerability exists in Django's `range` and `in` lookup implementations, which fail to properly sanitize query inputs when aliases or key transforms contain percent signs. This allows SQL injection attacks when constructing database queries. An attacker can exploit this through specially crafted query parameters to execute arbitrary SQL commands, requiring no authentication if the vulnerable lookup is exposed through user-controllable input.

## Affected products

- Django Software Foundation Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20

## Timeline

- 2026-12-02: disclosed

## References

- [https://pypi.org/project/Django/](https://pypi.org/project/Django/)
- [https://docs.djangoproject.com/en/dev/releases/security/](https://docs.djangoproject.com/en/dev/releases/security/)

## Related threats

- [Django heap buffer overflow in OGRGeometry.wkb](https://junglewise.ai/threats/cve-2026-132809-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django RasterField server-side file write vulnerability](https://junglewise.ai/threats/cve-2026-124827-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django truncatechars_html cross-site scripting](https://junglewise.ai/threats/cve-2026-115868-an-issue-was-discovered-in-django-6-1-before-6-1-4-6-0-before-6)
- [Django GIS spatial reference string injection](https://junglewise.ai/threats/cve-2026-114582-an-issue-was-discovered-in-django-6-1-before-6-1-3-6-0-before-6)
- [Django SSRF in GeoJSON coordinate reference systems](https://junglewise.ai/threats/cve-2026-111362-an-issue-was-discovered-in-django-6-1-before-6-1-3-6-0-before-6)
