Intel

AIKIDO-2025-10353

django-guardian is vulnerable to Improper Authorization

Improper Authorization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

70

High Risk

This Affects:

pythondjango-guardian
1.0.0 - 2.4.0
Fixed in 3.0.0

TL;DR

Affected versions of this package fail to properly enforce checks for guardian permissions, making both GuardedModelAdminMixin and GuardedModelAdmin unsafe. Any user who accesses the paths provided by GuardedModelAdminMixin can view, add, change, and delete guardian permissions for any user, regardless of whether the current user has the necessary guardian permissions. This vulnerability allows unauthorized users to manipulate permissions, potentially compromising the security and integrity of the system.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

django-guardian is vulnerable to Improper Authorization in versions 1.0.0 - 2.4.0.

How to fix this

Upgrade the django-guardian library to the patch version.