{"id":"CVE-2025-59682","aliases":["BIT-django-2025-59682","GHSA-q95w-c7qg-hrff","PYSEC-2026-1296"],"url":"https://o3.security/vulnerability/CVE-2025-59682","summary":"Django vulnerable to partial directory traversal via archives","details":"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.","published":"2025-10-01T00:00:00Z","modified":"2026-07-15T10:14:50.757723614Z","cvss":{"score":3.1,"severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"django","fixedVersion":"4.2.25"},{"ecosystem":"PyPI","name":"django","fixedVersion":"5.1.13"},{"ecosystem":"PyPI","name":"django","fixedVersion":"5.2.7"}],"fix":null,"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/10/01/3"},{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"WEB","url":"https://groups.google.com/g/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59682.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59682"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2025/oct/01/security-releases/"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T10:14:50.757723614Z"}}