CVE-2019-19118: Django Unintended Model Editing
Summary
CVE-2019-19118: Django allows unintended model editing. Affects django across 2 version ranges.
>= 2.1, < 2.1.15
>= 2.2, < 2.2.8
Fixed in 2.1.15 or 2.2.8, depending on the release line you run. How to fix ↓
Also tracked for
- python-django · Debian:11
The same CVE-2019-19118 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Django is a popular Python web framework that provides a set of tools and functionalities for building web applications. It allows developers to define models, which represent the data structure of the application, and provides an admin interface for managing and editing these models. However, a vulnerability has been discovered in Django versions 2.1 before 2.1.15 and 2.2 before 2.2.8 that allows unintended model editing.
Vulnerability Detail
The vulnerability in Django occurs when a model admin displays inline related models. In this scenario, if a user has view-only permissions for the parent model but edit permissions for the inline model, they would be presented with an editing user interface. This interface allows the user to make POST requests for updating the inline model. Although directly editing the view-only parent model is not possible, the parent model's save() method is called, which can trigger potential side effects and invoke pre and post-save signal handlers. This vulnerability can lead to unintended changes in the parent model and its associated data.
How To Fix
Latest published version: 6.1.2 as of 22 Oct 2026
pip install --upgrade "django==6.1.2"
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
>= 2.1, < 2.1.152.1.15pip install --upgrade "django==2.1.15" -
>= 2.2, < 2.2.82.2.8pip install --upgrade "django==2.2.8"
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the Django framework is vulnerable to unintended model editing in certain versions. It is recommended to upgrade to the fixed versions to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for django →
FAQ
This vulnerability allows users with edit permissions on inline models to unintentionally modify the parent model, potentially causing unintended changes and triggering pre and post-save signal handlers.
No, this vulnerability requires authenticated access to the Django admin interface.
There are no known instances of this vulnerability being exploited in the wild.
Yes, the CVSS score for this vulnerability is 6.5.
Yes, you can find more information about this vulnerability in the GitHub Advisory Database.
References
Related vulnerabilities
Recent vulnerabilities recorded for django.