Skip to main content
MEDIUM

CVE-2026-1287

Potential SQL injection in column aliases via control characters

CVSS v3

5.4

MEDIUM

EPSS Score

0.9 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

none

SSVC status

Get an alert for each new CVE published for django.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • djangoPyPIfrom 4.2 · fixed in 4.2.28
  • djangoBitnamifrom 4.2.0 · fixed in 4.2.28

Vendor advisories

  • CVE-2026-1287 Red Hat Product Security73 products fixed · 7 known affected

    Django: Django: SQL Injection via crafted column aliases

    ansible-automation-platform-24/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · automation-controller.src as a component of Red Hat Ansible Automation Platform 2 · python-django-bash-completion (satellite-capsule:el8) as a component of Red Hat Satellite 6

  • RHSA-2026:14835 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Satellite 6.18.5 Async Update

  • RHSA-2026:6291 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: General availability of the satellite/iop-advisor-backend-rhel9 container image

  • RHSA-2026:5971 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Satellite 6.16.7 Async Update

  • RHSA-2026:5970 Red Hat Product Security50 products fixed

    Red Hat Security Advisory: Satellite 6.17.7 Async Update

  • RHSA-2026:3959 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update

4 more advisories

Full record on NVD

Description

An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `FilteredRelation` is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet` methods `annotate()`, `aggregate()`, `extra()`, `values()`, `values_list()`, and `alias()`. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Solomon Kebede for reporting this issue.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Published
2026-02-03
Last Modified
2026-02-04

Frequently asked questions

What is CVE-2026-1287?

An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `FilteredRelation` is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet` methods `annotate()`, `aggregate()`, `extra()`, `values()`, `values_list()`, and `alias()`. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Solomon Kebede for reporting this issue.

Is CVE-2026-1287 actively exploited?

Active exploitation of CVE-2026-1287 has not been confirmed. Its EPSS score was 0.9% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-1287?

CVE-2026-1287 has a CVSS v3 base score of 5.4 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.

Running django? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month