Skip to main content
VulnerabilityPublished Updated

CVE-2026-87975: Python django · 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

Affects python-djangoSource GCVE Database

0
Compare
Authoritative record:CVE-2026-87975· Medium 4.3

Not known to be exploited · CVSS 4.3 Medium.

Data as of 20 Nov 2026, 17:35 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu Pro 14.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • 1.5.4-1ubuntu1 – 1.6.11-0ubuntu1.3+esm12
35 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 1.7.9-1ubuntu5 – 1.8.7-1ubuntu5.15+esm13
33 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 1:1.11.4-1ubuntu1 – 1:1.11.11-1ubuntu1.21+esm17
41 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=esm-infra/focalOther threatsAffected
  • 1:1.11.22-1ubuntu1 – 2:2.2.12-1ubuntu0.29+esm10
45 affected builds
Fixed in–
Ubuntu 22.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=jammyOther threatsAffected
  • 2:2.2.24-1ubuntu1 – 2:3.2.12-2ubuntu1.29
31 affected builds
Fixed in–
Ubuntu 24.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=nobleOther threatsAffected
  • 3:4.2.4-1ubuntu2 – 3:4.2.11-1ubuntu1.18
22 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Fixed versions are available: Django 6.1.2, 6.0.9, and 5.2.18 address this vulnerability. Users should upgrade to these or later versions to remediate the issue. Since this is a software vulnerability with official fixes, applying the official patches is the recommended mitigation.

Description

A vulnerability in Django versions 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18 allows an authenticated user with permission to submit a formset to delete database rows outside the formset's limiting queryset. This occurs because the save_existing_objects() method incorrectly trusts the presence of a primary key in submitted form data as proof that the object belongs to the queryset, enabling deletion of unauthorized objects when certain primary key types are used. Models with default AutoField primary keys are not affected.

References

Community reviews

Loading reviews…