Incorrect authorization in Django - CVE-2026-87975

 

Incorrect authorization in Django - CVE-2026-87975

Published: October 7, 2026


Vulnerability identifier: #VU153885
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-87975
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to delete instances outside the limiting queryset or create instances through edit-only formsets.

n

The vulnerability exists due to improper authorization enforcement in Django model formsets when processing submitted data for models whose primary keys can be set through the form. A remote attacker can submit forged POST data to delete instances outside the limiting queryset or create instances through edit-only formsets.

n

Affected configurations include a OneToOneField or parent link used as the primary key of an inline formset's model, or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key are not affected.


Affected software

Django

How to mitigate CVE-2026-87975

Install security update from vendor's website.

Django - addressed in versions 5.2.18, 6.0.9, 6.1.2

External References

Related Security Bulletins