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

exploitDog

github логотип

GHSA-45c6-75p6-83cc

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

Описание

fast-xml-builder Comment Value regex can be bypassed

Summary

The fix for https://github.com/advisories/GHSA-gh4j-gqv2-49f6 in fast-xml-parser sanitizes -- sequences in XML comment content using .replace(/--/g, '- -'). This skip the values containing three consecutive dashes (e.g., --->...), allowing an attacker to break out of an XML comment and inject arbitrary XML/HTML content.

Impact

Any application with comment property enabled allow attacker to inject malicious or unwanted code like JS script tag in the XML/HTML output.

Workarounds

Check for the presence of 3 consecutive dashes externally in the property value used for comment tag.

Пакеты

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

fast-xml-builder

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

= 1.1.5

1.1.6

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-91

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

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

fast-xml-builder builds XML from JSON. In 1.1.5, the fix for CVE-2026-41650 in fast-xml-parser sanitizes -- sequences in XML comment content using .replace(/--/g, '- -'). This skip the values containing three consecutive dashes (e.g., --->...), allowing an attacker to break out of an XML comment and inject arbitrary XML/HTML content. This vulnerability is fixed in 1.1.6.

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

fast-xml-builder builds XML from JSON. In 1.1.5, the fix for CVE-2026-41650 in fast-xml-parser sanitizes -- sequences in XML comment content using .replace(/--/g, '- -'). This skip the values containing three consecutive dashes (e.g., --->...), allowing an attacker to break out of an XML comment and inject arbitrary XML/HTML content. This vulnerability is fixed in 1.1.6.

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-91