Improper Output Neutralization for Logs Affecting django package, versions [,4.2.22)[5.0a1,5.1.10)[5.2a1,5.2.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Output Neutralization for Logs vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJANGO-10302884
  • published5 Jun 2025
  • disclosed5 Jun 2025
  • creditSeokchan Yoon

Introduced: 5 Jun 2025

NewCVE-2025-48432  (opens in a new tab)
CWE-117  (opens in a new tab)

How to fix?

Upgrade Django to version 4.2.22, 5.1.10, 5.2.2 or higher.

Overview

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the request.path function used by HTTP responses, which allows control characters to be written unescaped into logs. An attacker can manipulate log entries and potentially cause log injection or forgery by sending specially crafted URLs.

CVSS Base Scores

version 4.0
version 3.1