CVE-2025-59682
Django vulnerability analysis and mitigation

Overview

CVE-2025-59682 was discovered and disclosed on October 1, 2025. This vulnerability affects Django versions 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. The vulnerability exists in the django.utils.archive.extract() function, which is used by the 'startapp --template' and 'startproject --template' commands (Django Security).

Technical details

The vulnerability allows partial directory traversal via an archive with file paths sharing a common prefix with the target directory. The issue has been classified with a CVSS v3.1 Base Score of 3.1 (LOW) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N. The vulnerability is categorized as CWE-23: Relative Path Traversal (NVD).

Impact

The vulnerability could allow attackers to perform partial directory traversal attacks when using the template functionality in Django's startapp and startproject commands. This could potentially lead to file overwrite capabilities within the target directory structure (Django Security).

Mitigation and workarounds

The issue has been fixed in Django versions 5.2.7, 5.1.13, and 4.2.25. Users are strongly encouraged to upgrade to these patched versions. The fixes have been applied to Django's main branch, 6.0 (alpha status), 5.2, 5.1, and 4.2 branches (Django Security).

Community reactions

The Django security team has classified this vulnerability as 'low' severity according to their security policy. The vulnerability was responsibly disclosed and reported by security researcher 'stackered' (Django Security).

Additional resources


SourceThis report was generated using AI

Related Django vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59681HIGH7.1
  • DjangoDjango
  • python-django
NoYesOct 01, 2025
CVE-2025-57833HIGH7.1
  • DjangoDjango
  • django
NoYesSep 03, 2025
CVE-2025-32873MEDIUM5.3
  • DjangoDjango
  • python-django4.2
NoYesMay 08, 2025
CVE-2025-48432MEDIUM4
  • DjangoDjango
  • python-django4.2
NoYesJun 05, 2025
CVE-2025-59682LOW3.1
  • DjangoDjango
  • django
NoYesOct 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management