Advisory

GHSA-mwv2-398h-v489

Also known as: CVE-2007-0405, PYSEC-2026-629

Summary

Django Improper Access Control

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-01 17:44 UTC
Modified
2026-07-06 08:11 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0.95, fixed 1.0 (ecosystem)

Fixed versions

1.0

Fix

  • Fixed version 1.0
    pip install --upgrade django==1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences