MEDIUM6.5
PYSEC-2026-629
Django Improper Access Control
Quick fix
PYSEC-2026-629 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=1.0'Details
The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remote authenticated users to gain the privileges of a different user.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2007-0405[ADVISORY]
- https://github.com/django/django/commit/3c5782287e[WEB]
- https://github.com/django/django/commit/e89f0a65581f82a5740bfe989136cea75d09cd67[WEB]
- https://exchange.xforce.ibmcloud.com/vulnerabilities/31628[WEB]
- https://github.com/django/django[PACKAGE]
- http://code.djangoproject.com/changeset/3754[WEB]
- https://pypi.org/project/django[PACKAGE]
- https://github.com/advisories/GHSA-mwv2-398h-v489[ADVISORY]