CVE-2026-1287 | 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.

Published: 2026-02-03 Last update: 2026-02-04 Assigner: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 Source: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Conclusion & alert: CVE-2026-1287 is rated Low Risk (21.9/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.01%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2026-1287

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-02-04 0.01%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-1287

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.4 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 2.5 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2026-1287

GitHub Security Advisory for CVE-2026-1287

GHSA-gvg8-93h5-g6qq · Severity: high · Ecosystem: pip — Django has an SQL Injection issue

OS Trackers for CVE-2026-1287

vendor priority summary link
alpine CVE-2026-1287: 1 source package rows (py3-django); 2 state rows across 2 repos (3.23-community, edge-community); fixed 2, open 0. https://security.alpinelinux.org/vuln/CVE-2026-1287
debian not yet assigned CVE-2026-1287 not yet assigned priority: Debian including 1 source packages (python-django), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2026-1287
redhat high https://access.redhat.com/security/cve/CVE-2026-1287
suse high CVE-2026-1287 severity important: SUSE including 11 source package names (python3-Django-2.2.28-bp156.30.1, python311-Django-4.2.11-150600.3.47.1, …), 13 product×package rows across 5 product lines (SUSE Linux Enterprise Module for Package Hub 15 SP7, SUSE Package Hub 15 SP6, … (5 product lines)): Fixed 13. https://www.suse.com/security/cve/CVE-2026-1287/
ubuntu medium CVE-2026-1287 medium priority: Ubuntu including 1 source packages (python-django), 8 status rows across 8 suites (bionic, focal, jammy, noble, questing, trusty, upstream, xenial): released 8. https://ubuntu.com/security/CVE-2026-1287

Affected software / configurations for CVE-2026-1287

Vendor Product Version Raw CPE
djangoproject django >= 4.2, < 4.2.28 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 5.2, < 5.2.11 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
djangoproject django >= 6.0, < 6.0.2 cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

References for CVE-2026-1287

cvelogic Threat Intelligence