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

exploitDog

github логотип

GHSA-5wm8-gmm8-39j9

Опубликовано: 08 мая 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.7
CVSS3: 6.1

Описание

fast-xml-builder allows attribute values with unwanted quotes to bypass malicious or unwanted attributes

Summary

When an input data has quotes in attribute values but process entities is not enabled, it breaks the attribute value into multiple attributes. This gives the room for an attacker to insert unwanted attributes to the XML/HTML.

Detail

Malicious Input

{ a: { "@_attr": '" onClick="alert(1)' } }

Output

<a attr="" onClick="alert(1)"></a>

Workarounds

If you're not ignoring attributes then keep processEntities flag true.

Пакеты

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

fast-xml-builder

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

<= 1.1.6

1.1.7

EPSS

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

8.7 High

CVSS4

6.1 Medium

CVSS3

Дефекты

CWE-611
CWE-91

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

CVSS3: 6.1
redhat
3 месяца назад

fast-xml-builder builds XML from JSON. Prior to 1.1.7, when an input data has quotes in attribute values but process entities is not enabled, it breaks the attribute value into multiple attributes. This gives the room for an attacker to insert unwanted attributes to the XML/HTML. This vulnerability is fixed in 1.1.7.

CVSS3: 6.1
nvd
3 месяца назад

fast-xml-builder builds XML from JSON. Prior to 1.1.7, when an input data has quotes in attribute values but process entities is not enabled, it breaks the attribute value into multiple attributes. This gives the room for an attacker to insert unwanted attributes to the XML/HTML. This vulnerability is fixed in 1.1.7.

EPSS

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

8.7 High

CVSS4

6.1 Medium

CVSS3

Дефекты

CWE-611
CWE-91