Advisory record · GHSA-6w2r-r2m5-xq5w

Django is subject to SQL injection through its column aliases

CVSS 7.1 HighCriticalEPSS 0.28 · 98th percentile

Critical, because:

  • CVSS score 7.1 (7.0 or more) and EPSS 0.28 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical

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

PackageEcosystemAffectedFixed in
djangoPyPI<4.2.24 || >=5.0a1, <5.1.12 || >=5.2a1, <5.2.64.2.24, 5.1.12, 5.2.6
Identifiers
GHSA-6w2r-r2m5-xq5w · BIT-django-2025-57833 · CVE-2025-57833 · PYSEC-2025-105
Weakness (CWE)
CWE-89
Published
8 Sept 2025
Updated
10 Sept 2026

Machine-written summary

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

Django versions from 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6 are vulnerable to SQL injection through column aliases in FilteredRelation. An attacker who can supply a crafted dictionary expanded as keyword arguments to QuerySet.annotate() or QuerySet.alias() may be able to inject SQL. Upgrade django to 4.2.24, 5.1.12, or 5.2.6, depending on your release series.

Written 5 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
7.1 High 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N CNA (mitre)
  • CISA KEV Not listed.
  • EPSS 0.28, the 98th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 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.