CVE-2026-47079
The xml_builder module, used for generating XML, has an Inappropriate Encoding for Output Context vulnerability. This issue allows for Content Spoofing and Cross-site Scripting attacks. The vulnerability is present in versions from 0.0.6 up to but not including 2.4.1. The root cause lies in the XmlBuilder.generate/1 function, which fails to properly escape literal & characters in text or attribute values when they are followed by entity-like tokens. This oversight enables attackers to inject markup into downstream XML consumers that parse and render text content in markup-sensitive contexts such as HTML, SVG, or RSS/Atom feeds. Both element text and attribute values are susceptible to this vulnerability. Affected users should review and apply vendor remediation for xml_builder version 2.4.1 or later. Additionally, defenders should consider implementing compensating controls like input validation and output encoding to mitigate potential risks. Given the low CVSS score, this is considered a low-priority defensive review, but proactive measures are still warranted due to the potential impact on downstream consumers and the ease of exploitation.