PT-2026-39286 · Npm · Fast-Xml-Builder
Published
2026-05-08
·
Updated
2026-05-13
·
CVE-2026-44664
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
fast-xml-builder version 1.1.5
Description
An issue exists where the sanitization of
-- sequences in XML comment content is insufficient. The use of .replace(/--/g, '- -') fails to handle values containing three consecutive dashes (e.g., --->...), which allows an attacker to break out of an XML comment and inject arbitrary XML or HTML content, such as JavaScript script tags, into the output when the comment property is enabled.Recommendations
Update to version 1.1.6.
As a temporary workaround, externally check for the presence of three consecutive dashes in the property value used for the comment tag.
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Fast-Xml-Builder