Django cross-site request forgery (CSRF) vulnerability
Published 2 May 2022 · Updated 16 Sept 2024
Is your project on an affected django?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=0.91.0 <0.91.3
- Fixed in
- 0.91.3
pip install 'django>=0.91.3'- Affected
- >=0.95.0 <0.95.4
- Fixed in
- 0.95.4
pip install 'django>=0.95.4'- Affected
- >=0.96.0 <0.96.3
- Fixed in
- 0.96.3
pip install 'django>=0.96.3'Details
The administration application in Django 0.91.x, 0.95.x, and 0.96.x stores unauthenticated HTTP POST requests and processes them after successful authentication occurs, which allows remote attackers to conduct cross-site request forgery (CSRF) attacks and delete or modify data via unspecified requests.
Is GHSA-r5cj-wv24-92p5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected django, and gives you the command that fixes it.
More advisories for django
- HighCVE-2026-15307Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing · 4 Aug 2026
- MediumCVE-2026-15830Django GeoDjango vulnerable to denial of service through deeply nested geometry collections · 4 Aug 2026
- MediumCVE-2026-53878Django: DomainNameValidator permits newline characters that may enable HTTP header injection · 7 Jul 2026
- MediumCVE-2026-53877 Django: GDALRaster may over-read heap memory when constructed from bytes · 7 Jul 2026
- LowCVE-2026-48588Django: cache middleware may expose private responses when unrelated request cookies are present · 7 Jul 2026
- LowCVE-2026-8404Django: UpdateCacheMiddleware may disclose cached responses due to case-sensitive Cache-Control handling · 3 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2008-3909
- Linkgithub.com/django/django/commit/44debfeaa4473bd28872c735dd3d9afde6886752
- Linkgithub.com/django/django/commit/7e0972bded362bc4b851c109df2c8a6548481a8e
- Linkgithub.com/django/django/commit/aee48854a164382c655acb9f18b3c06c3d238e81
- Linkbugzilla.redhat.com/show_bug.cgi?id=460966
- Packagegithub.com/django/django
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2008-2.yaml
- Linkwww.redhat.com/archives/fedora-package-announce/2008-September/msg00091.html
- Linkwww.redhat.com/archives/fedora-package-announce/2008-September/msg00131.html
- Linkwww.debian.org/security/2008/dsa-1640
- Linkwww.djangoproject.com/weblog/2008/sep/02/security
- Linkwww.openwall.com/lists/oss-security/2008/09/03/4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.