Password hash disclosure to "view only" admin users with custom user models
- State
- Published
- Severity
- 2.1 Low
- Published
- Nov 3, 2026
- Updated
- Nov 3, 2026
- Reserved
- Oct 20, 2026
Description
An issue was discovered in Django 6.1 before 6.1.3 and 6.0 before 6.0.10. The `django.contrib.admin.utils.display_for_field()` function did not obfuscate the password field of user models other than `AUTH_USER_MODEL`, or of an `AUTH_USER_MODEL` inheriting its password field from a concrete parent model through multi-table inheritance, which allows authenticated staff users with only the view permission on such a model to obtain full password hashes via the read-only change form. 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 Aaron chen for reporting this issue.
| Product | Versions |
|---|---|
| Django djangoproject | 6.1 to before 6.1.3 Affected6.1.3 Not Affected6.0 to before 6.0.10 Affected6.0.10 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.1 Low | DSF | |
| 3.1 | 2.2 Low | DSF |
Weaknesses
- CWE-522 Insufficiently Protected Credentials
References
- Django security archiveVendor Advisory
- Django releases announcementsMailing List
- https://github.com/django/django/commit/f5b039a619b3b5394ea5b966e17c7546fda6f937Patch
- https://github.com/django/django/commit/7d875c0a49d2a59335c65f6bf57970a5bac03be2Patch
- https://github.com/django/django/commit/67cce9dcd23ddeec41ccf0abfe3431e3cd724365Patch
- Django security releases issued: 6.1.3, 6.0.10, and 5.2.19Vendor Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.