---
title: "Django 5.1.12 release notes"
version: 6.1
locale: pl
source: https://docs.djangoproject.com/pl/6.1/releases/5.1.12/
canonical: https://djangodocs.dev/pl/6.1/releases/5.1.12/
---
# Django 5.1.12 release notes

*September 3, 2025*

Django 5.1.12 fixes a security issue with severity „high” in 5.1.11.

## CVE-2025-57833: Potential SQL injection in `FilteredRelation` column aliases

[`FilteredRelation`](/pl/6.1/ref/models/querysets/#django.db.models.FilteredRelation) was subject to SQL injection in column aliases,
using a suitably crafted dictionary, with dictionary expansion, as the
`**kwargs` passed to [`QuerySet.annotate()`](/pl/6.1/ref/models/querysets/#django.db.models.query.QuerySet.annotate) or [`QuerySet.alias()`](/pl/6.1/ref/models/querysets/#django.db.models.query.QuerySet.alias).
