CVE-2026-127929: Information leakage in admin changelist via reverse relations
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. The admin changelist allows staff users with view permission on a registered model to enumerate model values via repeated lookup searches using crafted query strings that reference reverse relations. Exploitation requires knowledge of related model names or ForeignKey.relatedqueryname overrides. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank OpenAI for reporting this issue.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A staff user who has view permission on a registered model can exploit it through the Django admin changelist. The attacker must know related model names or any ForeignKey.related_query_name override used by the application.
What information can be exposed?
The issue allows enumeration of model values through repeated crafted lookup searches that reference reverse relations. The available data does not indicate that the attacker can modify data or cause a service disruption.
Are default Django admin deployments affected?
Affected deployments are those using Django admin with staff users who have view permission on a registered model and where the required reverse-relation names can be identified. The described attack does not require an unauthenticated user.
Which Django releases are known to be affected?
Django versions before 6.1.4 in the 6.1 series, before 6.0.11 in the 6.0 series, and before 5.2.20 in the 5.2 series are affected. Unsupported series including 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected.