Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-wjrh-hj83-3wh7

Опубликовано: 27 мая 2025
Источник: github
Github: Прошло ревью
CVSS3: 8.2

Описание

Django-Select2 Vulnerable to Widget Instance Secret Cache Key Leaking

Impact

Instances of HeavySelect2Mixin subclasses like the ModelSelect2MultipleWidget and ModelSelect2Widget can secret access tokens across requests. This can allow users to access restricted querysets and restricted data.

Patches

The problem has been patched in version 8.4.1 and all following versions.

Workarounds

This vulnerability is limited use cases where instances of widget classes are created during app loading (not during a request).

Example of affected code:

class MyForm(forms.ModelForm): class Meta: widgets = {"my_select_field": Select2ModelWidget()}

Django allows you to pass just the widget class (not the instance). This can be used to mitigate the session request leak.

Example of affected code:

class MyForm(forms.ModelForm): class Meta: widgets = {"my_select_field": Select2ModelWidget}

References

Thanks to @neartik for reporting this issue. I will address it later. I had to delete your issue, to avoid exploitation of this security issue.

Пакеты

Наименование

django-select2

pip
Затронутые версииВерсия исправления

< 8.4.1

8.4.1

EPSS

Процентиль: 11%
0.00039
Низкий

8.2 High

CVSS3

Дефекты

CWE-402
CWE-918

Связанные уязвимости

CVSS3: 8.2
ubuntu
23 дня назад

Django-Select2 is a Django integration for Select2. Prior to version 8.4.1, instances of HeavySelect2Mixin subclasses like the ModelSelect2MultipleWidget and ModelSelect2Widget can leak secret access tokens across requests. This can allow users to access restricted query sets and restricted data. This issue has been patched in version 8.4.1.

CVSS3: 8.2
nvd
23 дня назад

Django-Select2 is a Django integration for Select2. Prior to version 8.4.1, instances of HeavySelect2Mixin subclasses like the ModelSelect2MultipleWidget and ModelSelect2Widget can leak secret access tokens across requests. This can allow users to access restricted query sets and restricted data. This issue has been patched in version 8.4.1.

CVSS3: 8.2
debian
23 дня назад

Django-Select2 is a Django integration for Select2. Prior to version 8 ...

EPSS

Процентиль: 11%
0.00039
Низкий

8.2 High

CVSS3

Дефекты

CWE-402
CWE-918