Security mailing lists by PureSourceCode

PYSEC-2019-85

not scored yetwithdrawn / rejected

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.)

Published
2 Dec 2019
Last modified
14 Mar 2023
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI django >= 2.1, < 2.1.15; >= 2.2, < 2.2.8 2.1.15, 2.2.8

References

History

  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Dec 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.