SQLi via FilteredRelation column aliases before Django 6.0.2
CVE-2026-1287 Published on February 3, 2026

Potential SQL injection in column aliases via control characters
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.

Vendor Advisory Vendor Advisory NVD

Vulnerability Analysis

CVE-2026-1287 can be exploited with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and a small impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
LOW

Timeline

Initial report received.

Vulnerability confirmed. 14 days later.

Security release issued. 8 days later.

Weakness Type

What is a SQL Injection Vulnerability?

The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.

CVE-2026-1287 has been classified to as a SQL Injection vulnerability or weakness.


Products Associated with CVE-2026-1287

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-1287 are published in these products:

 
 
 
 
 
 
 
 
 
 
 
 

Affected Versions

djangoproject Django: Red Hat Ansible Automation Platform 2.5 for RHEL 8: Red Hat Satellite 6.16 for RHEL 8: Red Hat Ansible Automation Platform 2.5 for RHEL 9: Red Hat Ansible Automation Platform 2.6 for RHEL 9: Red Hat Satellite 6.16 for RHEL 9: Red Hat Satellite 6.17 for RHEL 9: Red Hat Satellite 6.18 for RHEL 9: Red Hat Ansible Automation Platform 2.5: Red Hat Ansible Automation Platform 2.6: Red Hat Discovery 2: Red Hat Satellite 6.18: Red Hat Ansible Automation Platform 2: Red Hat Satellite 6: Red Hat Update Infrastructure 4 for Cloud Providers: Red Hat Ansible Automation Platform 2.6 for RHEL 10: Red Hat OpenStack Platform 16.2: Red Hat OpenStack Platform 17.1: Red Hat OpenStack Platform 18.0:

Exploit Probability

EPSS
0.49%
Percentile
38.24%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.