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

*September 4, 2023*

Django 4.2.5 fixes a security issue with severity «moderate» and several bugs
in 4.2.4.

## CVE-2023-41164: Potential denial of service vulnerability in `django.utils.encoding.uri_to_iri()`

`django.utils.encoding.uri_to_iri()` was subject to potential denial of
service attack via certain inputs with a very large number of Unicode
characters.

## Correzioni di bug

- Fixed a regression in Django 4.2 that caused an incorrect validation of
  `CheckConstraints` on `__isnull` lookups against `JSONField`
  ([#34754](https://code.djangoproject.com/ticket/34754)).
- Fixed a bug in Django 4.2 where the deprecated `DEFAULT_FILE_STORAGE` and
  `STATICFILES_STORAGE` settings were not synced with `STORAGES`
  ([#34773](https://code.djangoproject.com/ticket/34773)).
- Fixed a regression in Django 4.2.2 that caused an unnecessary selection of a
  non-nullable `ManyToManyField` without a natural key during serialization
  ([#34779](https://code.djangoproject.com/ticket/34779)).
- Fixed a regression in Django 4.2 that caused a crash of a queryset when
  filtering against deeply nested `OuterRef()` annotations ([#34803](https://code.djangoproject.com/ticket/34803)).
