Live threats

All CVEs / Djangoproject

CVE-2019-19118Djangoproject Django

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.7%
probability of exploitation in 30 days · percentile 77
Auth required
Yes
Published
Dec 2, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-276
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

What happens

Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 2.1 < 2.1.15 2.1.15 pip install "django>=2.1.15"
PyPI django ≥ 2.2 < 2.2.8 2.2.8 pip install "django>=2.2.8"
PyPI django ≥ 2.1 < 2.1.15 2.1.15 pip install "django>=2.1.15"
PyPI django ≥ 2.2 < 2.2.8 2.2.8 pip install "django>=2.2.8"

Per OSV / GitHub Advisories (GHSA-hvmf-r92r-27hr, PYSEC-2019-15). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 2.1 < 2.1.15
djangoprojectdjango≥ 2.2 < 2.2.8
fedoraprojectfedora31

Official advisories

Also: SUSE (+1)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.