CVE-2025-59682: Djangoproject Django Path Traversal

CVE-2025-59682

NVDCVSS scored by cve@mitre.org

Vulnerability Summary

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.
Severity Level
LOW(3.1)
Published Date
Oct 1, 2025
Last Modified
Oct 12, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.97%Probability
Root Weakness (CWE)
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
CVSS v3.1 Base Metrics — Score 3.1 (LOW)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Djangoproject Django >= 4.2.0 and < 4.2.25
  • Djangoproject Django >= 5.1 and < 5.1.13
  • Djangoproject Django >= 5.2 and < 5.2.7
  • djangoproject Django >= 4.2 and < 4.2.25
  • djangoproject Django >= 5.1 and < 5.1.13
  • djangoproject Django >= 5.2 and < 5.2.7
Patched Versions
  • Djangoproject Django 4.2.25
  • Djangoproject Django 5.1.13
  • Djangoproject Django 5.2.7
  • djangoproject Django 4.2.25
  • djangoproject Django 5.1.13
  • djangoproject Django 5.2.7

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run Djangoproject Django and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Oct 1, 2025Published
  • Oct 12, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Djangoproject Django CVEsYou are reading CVE-2025-59682. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 2, 2026 10:11 UTC