{"cve":"CVE-2025-59682","nvd":{"published":"2025-10-01T19:15:37.007","modified":"2026-10-12T15:10:00.207","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-23"],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://www.djangoproject.com/weblog/2025/oct/01/security-releases/","http://www.openwall.com/lists/oss-security/2025/10/01/3"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T22:11:26.888974865+00:00"},"epss":{"cve":"CVE-2025-59682","score":0.00932,"percentile":0.60442,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-q95w-c7qg-hrff","url":"https://osv.dev/vulnerability/GHSA-q95w-c7qg-hrff","summary":"Django vulnerable to partial directory traversal via archives","modified":"2026-09-10T03:50:30.221015968Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.25"],"fixed":["4.2.25"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.1 <5.1.13"],"fixed":["5.1.13"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.2 <5.2.7"],"fixed":["5.2.7"]}]},{"id":"PYSEC-2026-1296","url":"https://osv.dev/vulnerability/PYSEC-2026-1296","summary":"Django vulnerable to partial directory traversal via archives","modified":"2026-07-07T17:56:06.860268560Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2 <4.2.25",">=5.1 <5.1.13",">=5.2 <5.2.7"],"fixed":["4.2.25","5.1.13","5.2.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}