{"id":"CVE-2025-59681","aliases":["BIT-django-2025-59681","GHSA-hpr9-3m2g-3j9p","PYSEC-2025-106"],"url":"https://o3.security/vulnerability/CVE-2025-59681","summary":"Django vulnerable to SQL injection in column aliases","details":"An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).","published":"2025-10-01T00:00:00Z","modified":"2026-07-15T10:14:41.502407921Z","cvss":{"score":7.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"django","fixedVersion":"4.2.25"},{"ecosystem":"PyPI","name":"django","fixedVersion":"5.1.13"},{"ecosystem":"PyPI","name":"django","fixedVersion":"5.2.7"}],"fix":null,"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/10/01/3"},{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"WEB","url":"https://groups.google.com/g/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59681.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59681"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T10:14:41.502407921Z"}}