{"id":"BIT-django-2025-59681","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).","aliases":["CVE-2025-59681","GHSA-hpr9-3m2g-3j9p","PYSEC-2025-106"],"modified":"2026-05-20T08:11:15.793541004Z","published":"2025-10-08T08:40:24.312Z","database_specific":{"cpes":["cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"],"severity":"Critical"},"references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"WEB","url":"https://groups.google.com/g/django-announce"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59681"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/10/01/3"}],"affected":[{"package":{"name":"django","ecosystem":"Bitnami","purl":"pkg:bitnami/django"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.2.0"},{"fixed":"4.2.25"},{"introduced":"5.1.0"},{"fixed":"5.1.13"},{"introduced":"5.2.0"},{"fixed":"5.2.7"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/django/BIT-django-2025-59681.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.7.3"}