VDB
Sign up
—

PYSEC-2025-47

Quick fix

PYSEC-2025-47 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=4.2.22'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 5.2Fixed in: 5.2.2
Fixpip install --upgrade 'django>=4.2.22'

References