CVE-2026-119642: Information leakage in admin changelist via "pk" alias for OneToOneField
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 with a custom OneToOneField primary key to enumerate related model data via repeated lookup searches using the "pk" alias in the query string. 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 JoeCyberTech for reporting this issue.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Django 6.1 before 6.1.4, 6.0 before 6.0.11, or 5.2 before 5.2.20 may be affected when the Django admin registers a model that has a custom OneToOneField primary key. Unsupported series, including 5.1.x, 5.0.x, and 4.2.x, were not evaluated and may also be affected.
What access and conditions does an attacker need?
An attacker needs staff-level access and view permission for the affected registered model. They can use repeated admin changelist lookup searches with the "pk" query-string alias to enumerate related-model data.
What should be checked to determine whether an application is affected?
Review registered Django admin models for custom OneToOneField primary keys, then identify staff accounts or roles granted view permission on those models. Check the deployed Django version against the fixed releases: 6.1.4, 6.0.11, and 5.2.20.