GitHub Advisory Database
GHSA-7xr5-9hcq-chf9
Django Improper Output Neutralization for Logs vulnerability
Details
An issue was discovered in Django 5.2 before 5.2.2, 5.1 before 5.1.10, and 4.2 before 4.2.22. Internal HTTP response logging does not escape request.path, which allows remote attackers to potentially manipulate log output via crafted URLs. This may lead to log injection or forgery when logs are viewed in terminals or processed by external systems.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 5.2 before 5.2.2 (fixed in 5.2.2) |
| PyPI | django | From 5.0a1 before 5.1.10 (fixed in 5.1.10) |
| PyPI | django | All versions before 4.2.22 (fixed in 4.2.22) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-48432
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-47.yaml
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2025/jun/04/security-releases
- https://www.djangoproject.com/weblog/2025/jun/10/bugfix-releases
- http://www.openwall.com/lists/oss-security/2025/06/04/5
- http://www.openwall.com/lists/oss-security/2025/06/10/2
- http://www.openwall.com/lists/oss-security/2025/06/10/3
- http://www.openwall.com/lists/oss-security/2025/06/10/4