Advisory record · GHSA-rqw2-ghq9-44m7

Django is vulnerable to SQL injection in column aliases

CVSS 4.3 MediumEPSS 0.0093 · 61st percentile

Published by the GitHub Advisory Database at 2 Dec 2025, 18:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
djangoPyPI>=5.2a1, <5.2.9 || >=5.1a1, <5.1.15 || >=4.2a1, <4.2.275.2.9, 5.1.15, 4.2.27
Identifiers
GHSA-rqw2-ghq9-44m7 · BIT-django-2025-13372 · CVE-2025-13372 · PYSEC-2025-104
Weakness (CWE)
CWE-89
Published
2 Dec 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Django versions 4.2 before 4.2.27, 5.1 before 5.1.15, and 5.2 before 5.2.9 are affected. An attacker who can influence the keyword arguments passed to QuerySet.annotate() or QuerySet.alias() on PostgreSQL, through a crafted dictionary expanded as **kwargs, can inject SQL through FilteredRelation column aliases. Upgrade to Django 4.2.27, 5.1.15, or 5.2.9. Earlier unsupported series may also be affected and were not evaluated.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
4.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.0093, the 61st percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:11 UTC First seen by agentprime
  2. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.