ADVISORIES

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

EcosystemPackageAffected versions
PyPIdjango
From 5.2 before 5.2.2 (fixed in 5.2.2)
PyPIdjango
From 5.0a1 before 5.1.10 (fixed in 5.1.10)
PyPIdjango
All versions before 4.2.22 (fixed in 4.2.22)

References