PT-2026-79347 · Hexpm · Xml Builder
CVSS v4.0
2.1
Low
| Vector | AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
Name of the Vulnerable Software and Affected Versions
joshnuss xml builder versions 0.0.7 through 2.4.0
Description
An XML Injection issue in the
XmlBuilder module allows for Content Spoofing and XML Injection. The problem exists within the lib/xml builder.ex file and affects the XmlBuilder.generate/1(), XmlBuilder.generate/2(), and XmlBuilder.escape/1() functions. Specifically, the escape/1() function handles {:cdata, data} by concatenating data between CDATA markers without checking for the ]]> sequence. Since CDATA sections lack an internal escape mechanism, an attacker providing input containing ]]> can prematurely close the CDATA section. This allows subsequent bytes to be interpreted as ordinary XML markup, enabling the injection of arbitrary elements, text, or entity references into the resulting document.Recommendations
Update joshnuss xml builder to version 2.4.1.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Xml Builder