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.
https://groups.google.com/g/django-announce
https://github.com/django/django/commit/99d9c8da0f4d2ff6e9ff0ecc9dd388f1089b1663
https://github.com/django/django/commit/8171bbca0a7a22ead364c3f8b97b94fc06a62a1d
https://github.com/django/django/commit/3a88a554a0f45792e91e9338bbd01346af654b57
https://github.com/django/django/commit/2690ef254abf5120f84d7c99c998f7344455eac2
Published: 2026-12-02
Updated: 2026-12-02
Base Score: 4
Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:N/A:N
Severity: Medium
Base Score: 2.7
Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
Severity: Low
Base Score: 5.1
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Severity: Medium