Advisory

PYSEC-2026-629

Also known as: CVE-2007-0405, GHSA-mwv2-398h-v489

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

Not rated by the source.

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 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: PyPA Advisory Database · CC BY 4.0

Sources & licences