{"id":"CVE-2026-87975","revision":null,"records":[{"revision":"acdfae0e65b84854814d9ba4d668215b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-87975","aliases":[],"title":"Privilege abuse in model formsets with editable primary keys","description":"An issue was discovered in Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.\n`django.forms.models.BaseModelFormSet.save_existing_objects()` used the presence of a primary key on a submitted form's instance as evidence that the instance belonged to the formset's limiting queryset. An object outside that queryset is represented by a newly constructed instance whose primary key can still be populated from submitted data when the model's primary key is a field accepted by the form, such as 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. This allows an authenticated user permitted to submit such a formset to delete rows outside the limiting queryset, without any permission on the targeted object, via forged management-form data marking an out-of-queryset object for deletion. Models using the default AutoField primary key are not affected.\nEarlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.\nDjango would like to thank Seonggwon Yoon for reporting this issue.","state":0,"publishedAt":"2026-10-06T13:35:59.505+00:00","modifiedAt":"2026-10-06T13:53:32.999+00:00","affected":[{"ecosystem":"https://pypi.org/project/Django/","name":"django","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://pypi.org/project/Django/\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"django\",\n                    \"product\": \"Django\",\n                    \"repo\": \"https://github.com/django/django/\",\n                    \"vendor\": \"djangoproject\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"6.1\",\n                            \"lessThan\": \"6.1.2\",\n                            \"versionType\": \"python\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"6.1.2\",\n                            \"versionType\": \"python\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"6.0\",\n                            \"lessThan\": \"6.0.9\",\n                            \"versionType\": \"python\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"6.0.9\",\n                            \"versionType\": \"python\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"5.2\",\n                            \"lessThan\": \"5.2.18\",\n                            \"versionType\": \"python\"\n                        },\n                        {\n                            \"status\": \"unaffected\",\n                            \"version\": \"5.2.18\",\n                            \"versionType\": \"python\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"severity":"MEDIUM"},{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"severity":"MEDIUM"}],"references":["https://docs.djangoproject.com/en/dev/releases/security/","https://groups.google.com/g/django-announce","https://github.com/django/django/commit/83cbd21be57483e6b3eb6e4688a561c841aff75e","https://github.com/django/django/commit/cce6c57ed30ea83725f9d6abb2fe5ee932bab107","https://github.com/django/django/commit/b83ab92bc5474558b083a840ea4628b3261b2cfe","https://github.com/django/django/commit/ff27883ca055aa9ab23015b50674a5b10dfe5a41","https://www.djangoproject.com/weblog/2026/oct/06/security-releases/"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-87975","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-87975","identifiers":["CVE-2026-87975"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T14:57:42.7555955+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T14:57:42.7555955+00:00","lastSuccessAt":"2026-11-11T14:57:42.9319568+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.9319577+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-19109df301f45af5f6ac2ef04012c27245f9ad888d1e548bcdb48fe76d9f96e6","complete":true,"records":424146,"lastAttemptAt":"2026-11-11T14:57:42.3158203+00:00","lastSuccessAt":"2026-11-11T14:57:42.1205118+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.3158203+00:00","snapshotPublishedAt":"2026-11-11T14:27:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-daa70f0e05b540b28ec429806bdccfc4","complete":false,"records":13759,"lastAttemptAt":"2026-11-11T15:09:37.2726122+00:00","lastSuccessAt":"2026-11-11T15:09:37.269+00:00","error":null,"lastVerifiedAt":"2026-11-11T15:09:37.269+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13582,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T14:57:42.7555955+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T14:57:42.7555955+00:00","lastSuccessAt":"2026-11-11T14:57:42.9331503+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.9331505+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-11785b13898646a1917b06b09d2df4a4","complete":true,"records":13753,"lastAttemptAt":"2026-11-11T14:57:44.6046058+00:00","lastSuccessAt":"2026-11-11T13:57:34.909+00:00","error":null,"lastVerifiedAt":"2026-11-11T13:57:34.909+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T14:57:42.5803744+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.5803744+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T14:57:42.3614093+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.3614093+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-11T14:57:42.6953487+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.6953487+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-10cb353ca77c2a8069d6892d1d394d936b12c0add3c8749e2a1a03a1c5d50426","complete":true,"records":231666,"lastAttemptAt":"2026-11-11T14:57:42.4738411+00:00","lastSuccessAt":"2026-11-11T12:59:55.8981437+00:00","error":null,"lastVerifiedAt":"2026-11-11T14:57:42.4738411+00:00","snapshotPublishedAt":"2026-11-11T12:32:53+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}