CVSS 3.1
5.4 mediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NMedium (5.4) in djangoproject django. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.28, 5.2.11, 6.0.2.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Ndjango (PyPI): fixed in 6.0.2, 5.2.11, 4.2.28Explain CVE-2026-1287 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-1287?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-1287?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-1287 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| djangoproject Django | from 6.0 before 6.0.2 |
| djangoproject Django | from 5.2 before 5.2.11 |
| djangoproject Django | from 4.2 before 4.2.28 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-gvg8-93h5-g6qq | PyPI | django | >=6.0a1 <6.0.2 | 6.0.2 |
| GHSA-gvg8-93h5-g6qq | PyPI | django | >=5.2a1 <5.2.11 | 5.2.11 |
| GHSA-gvg8-93h5-g6qq | PyPI | django | >=4.2a1 <4.2.28 | 4.2.28 |
| PYSEC-2026-46 | PyPI | django | >=4.2 <4.2.28 >=5.2 <5.2.11 >=6.0 <6.0.2 | 4.2.28, 5.2.11, 6.0.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | python-django | 2:2.2.28-1~deb11u12 | DLA-4484-1 |
| Debian | 12 | python-django | 3:3.2.25-0+deb12u2 | DEBIAN-CVE-2026-1287 DSA-6150-1 |
| Debian | 13 | python-django | 3:4.2.28-0+deb13u1 | DEBIAN-CVE-2026-1287 DSA-6150-1 |
| Debian | 14 | python-django | 3:4.2.28-1 | DEBIAN-CVE-2026-1287 |
| Ubuntu | 22.04:LTS | python-django | 2:3.2.12-2ubuntu1.25 | UBUNTU-CVE-2026-1287 |
| Ubuntu | 24.04:LTS | python-django | 3:4.2.11-1ubuntu1.14 | UBUNTU-CVE-2026-1287 |
| Ubuntu | 25.10 | python-django | 3:5.2.4-1ubuntu2.3 | UBUNTU-CVE-2026-1287 |
| Ubuntu | 26.04:LTS | python-django | 3:5.2.9-0ubuntu3 | UBUNTU-CVE-2026-1287 |
| Ubuntu | Pro:14.04:LTS | python-django | 1.6.11-0ubuntu1.3+esm10 | UBUNTU-CVE-2026-1287 |
| Ubuntu | Pro:16.04:LTS | python-django | 1.8.7-1ubuntu5.15+esm11 | UBUNTU-CVE-2026-1287 |
| Ubuntu | Pro:18.04:LTS | python-django | 1:1.11.11-1ubuntu1.21+esm14 | UBUNTU-CVE-2026-1287 |
| Ubuntu | Pro:20.04:LTS | python-django | 2:2.2.12-1ubuntu0.29+esm7 | UBUNTU-CVE-2026-1287 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.6.26-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-gateway, automation-gateway-config, automation-gateway-server | 0:2.5.20260225-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource | 0:3.13.3-2.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-protobuf, python3.12-protobuf-debuginfo, python3.12-protobuf-debugsource | 0:5.29.6-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | receptor, receptorctl, receptor-debuginfo and 1 more | 0:1.6.3-4.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8 | python3.12-django | 0:4.2.28-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.6.26-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-gateway, automation-gateway-config, automation-gateway-server | 0:2.5.20260225-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource | 0:3.13.3-2.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-protobuf, python3.12-protobuf-debuginfo, python3.12-protobuf-debugsource | 0:5.29.6-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | receptor, receptorctl, receptor-debuginfo and 1 more | 0:1.6.3-4.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9 | python3.12-django | 0:4.2.28-1.el9ap | RHSA-2026:3959 |
| 52 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | python-Django | 4.2.11-150600.3.47.1 | SUSE-SU-2026:0440-1 |
| openSUSE | Leap 15.6 | python-Django | 4.2.11-150600.3.47.1 | SUSE-SU-2026:0440-1 |
| openSUSE | Leap 16.0 | python-Django | 5.2.4-bp160.5.1 | openSUSE-SU-2026:20184-1 |
| openSUSE | Tumbleweed | python-Django | 5.2.11-1.1 | openSUSE-SU-2026:10160-1 |
| openSUSE | Tumbleweed | python-Django4 | 4.2.28-1.1 | openSUSE-SU-2026:10247-1 |
| openSUSE | Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE | Tumbleweed | python-Django6 | 6.0.2-1.1 | openSUSE-SU-2026:10145-1 |
| Alpine | v3.23, v3.24 | py3-django | 4.2.28-r0 | ALPINE-CVE-2026-1287 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
This IMPORTANT SQL injection flaw in Django allows a remote attacker to execute arbitrary SQL commands by crafting column aliases. This vulnerability affects Red Hat products that incorporate Django, such as Red Hat Ansible Automation Platform, Red Hat Discovery, Red Hat Satellite, Insights, and Ansible Services, potentially leading to unauthorized data access or modification.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-django-0:4.2.28-1.el8ap | Fixed 2026-03-06 | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-django-0:4.2.28-1.el9ap | Fixed 2026-03-06 | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-django-0:4.2.28-1.el9ap | Fixed 2026-03-06 | RHSA-2026:3958 |
| Red Hat Satellite 6.16 for RHEL 8 | python-django-0:4.2.28-0.1.el8pc | Fixed 2026-03-26 | RHSA-2026:5971 |
| Red Hat Satellite 6.16 for RHEL 9 | python-django-0:4.2.28-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5971 |
| Red Hat Satellite 6.17 for RHEL 9 | foreman-0:3.14.0.14-1.el9sat | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | libcomps-0:0.1.23-0.3.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-brotli-0:1.2.0-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-django-0:4.2.28-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-pulp-container-0:2.22.3-1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/lightspeed-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | automation-controller | Will not fix | |
| Red Hat Ansible Automation Platform 2 | python-django | Not affected | |
| Red Hat OpenStack Platform 16.2 | python-django20 | Not affected | |
| Red Hat OpenStack Platform 17.1 | python-django | Not affected | |
| 15 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-1287.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.