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

exploitDog

nvd логотип

CVE-2023-39319

Опубликовано: 08 сент. 2023
Источник: nvd
CVSS3: 6.1
EPSS Низкий

Уязвимость межсайтового скриптинга (XSS) в пакете html/template из-за некорректной обработки последовательностей "<script", "<!--" и "</script" в JS-литералах внутри контекста

Описание

Пакет html/template не применяет правильные правила для обработки последовательностей "<script", "<!--" и "</script>" внутри JS-литералов в контексте тега <script>. Это может привести к тому, что парсер шаблонов некорректно определит завершение контекста скрипта, что вызовет неправильное экранирование действий. Данная проблема может быть использована для проведения атаки межсайтового скриптинга (XSS).

Тип уязвимости

Межсайтовый скриптинг (XSS)

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Версия до 1.20.8 (исключая)
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Версия от 1.21.0 (включая) до 1.21.1 (исключая)

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 6.1
ubuntu
около 2 лет назад

The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.

CVSS3: 6.1
redhat
около 2 лет назад

The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.

CVSS3: 6.1
msrc
около 2 месяцев назад

Improper handling of special tags within script contexts in html/template

CVSS3: 6.1
debian
около 2 лет назад

The html/template package does not apply the proper rules for handling ...

CVSS3: 6.1
github
около 2 лет назад

The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79