Описание
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
Output
Workarounds
If you're not ignoring attributes then keep processEntities flag true.
Пакеты
fast-xml-builder
<= 1.1.6
1.1.7
EPSS
8.7 High
CVSS4
6.1 Medium
CVSS3
CVE ID
Дефекты
Связанные уязвимости
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.
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
8.7 High
CVSS4
6.1 Medium
CVSS3