Relative Path Traversal Affecting django package, versions [4.2,4.2.25)[5.1,5.1.13)[5.2,5.2.7)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (22nd percentile)

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 Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJANGO-13179425
  • published2 Oct 2025
  • disclosed1 Oct 2025
  • creditstackered

Introduced: 1 Oct 2025

NewCVE-2025-59682  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade django to version 4.2.25, 5.1.13, 5.2.7 or higher.

Overview

Affected versions of this package are vulnerable to Relative Path Traversal via the django.utils.archive.extract() function used by startapp --template and startproject --template. An attacker can modify files outside the intended extraction directory by crafting an archive with file paths that share a common prefix with the target directory.

CVSS Base Scores

version 4.0
version 3.1