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

exploitDog

github логотип

GHSA-4mq2-gc4j-cmw6

Опубликовано: 11 янв. 2024
Источник: github
Github: Прошло ревью
CVSS3: 9.3

Описание

Django Template Engine Vulnerable to XSS

Impact

Vulnerability Type: Cross-Site Scripting (XSS)
Affected Users: All users of the Django template engine for Fiber prior to the patch. This vulnerability specifically impacts web applications that render user-supplied data through this template engine, potentially leading to the execution of malicious scripts in users' browsers when visiting affected web pages.

Patches

The vulnerability has been addressed. The template engine now defaults to having autoescape set to true, effectively mitigating the risk of XSS attacks. Users are advised to upgrade to the latest version of the Django template engine for Fiber, where this security update is implemented. Ensure that the version of the template engine being used is the latest, post-patch version.

Workarounds

For users unable to upgrade immediately to the patched version, a workaround involves manually implementing autoescaping within individual Django templates. This method includes adding specific tags in the template to control autoescape behavior:

{% autoescape on %} {{ "<script>alert('xss');</script>" }} {% endautoescape %}

References

Пакеты

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

github.com/gofiber/template/django/v3

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

< 3.1.9

3.1.9

EPSS

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

9.3 Critical

CVSS3

Дефекты

CWE-116
CWE-20
CWE-79

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

CVSS3: 9.3
nvd
больше 1 года назад

This package provides universal methods to use multiple template engines with the Fiber web framework using the Views interface. This vulnerability specifically impacts web applications that render user-supplied data through this template engine, potentially leading to the execution of malicious scripts in users' browsers when visiting affected web pages. The vulnerability has been addressed, the template engine now defaults to having autoescape set to `true`, effectively mitigating the risk of XSS attacks.

EPSS

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

9.3 Critical

CVSS3

Дефекты

CWE-116
CWE-20
CWE-79