CVE-2025-59682: djangoproject Django · Relative Path Traversal
Affects djangoproject DjangoSource CVE Database V5
Not known to be exploited · CVSS 3.1 Low.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 60% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| djangoproject Django | Affected
| Fixed in– |
AI-suggested
- Upgrade Django to the fixed versions: 4.2.25 or later, 5.1.13 or later, or 5.2.7 or later, as applicable.
- Avoid using untrusted or unauthenticated archive templates with the 'startapp --template' and 'startproject --template' commands.
- Implement strict access controls on development and deployment environments to limit who can supply or modify template archives.
- Use file system permissions and sandboxing to restrict where files can be extracted during template processing, preventing writes outside intended directories.
- Incorporate integrity checks or cryptographic signatures on template archives to ensure authenticity and prevent tampering.
- Monitor development and CI/CD pipelines for unusual file changes or unexpected archive usage.
- Educate developers and DevOps teams about the risks of using external templates and the importance of applying security patches promptly.
- Review and harden automated deployment scripts that invoke Django template commands to ensure they do not process untrusted inputs.
Description
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. The django.utils.archive.extract() function, used by the "startapp --template" and "startproject --template" commands, allows partial directory traversal via an archive with file paths sharing a common prefix with the target directory.