Intel

AIKIDO-2026-48285

xml_builder is vulnerable to XML Injection

XML InjectionCVE-2026-47080 Published 3 days ago

21

Low Risk

This Affects:

ELIXIRxml_builder
0.0.7 - 2.4.0
Fixed in 2.4.1
Are you affected? Scan for Free

TL;DR

The library builds XML from Elixir terms and writes {:cdata, value} content directly between the <![CDATA[ and ]]> delimiters. When the value contains a ]]> sequence the CDATA section closes early and the trailing text is emitted as raw markup. Externally influenced content wrapped in a CDATA tuple can therefore break out of the section and inject arbitrary XML nodes that downstream parsers treat as real elements. The fix rewrites embedded ]]> sequences so CDATA content can no longer terminate the block.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you wrap externally influenced input in a {:cdata, ...} tuple whose output is consumed by a downstream XML parser.

Background info

xml_builder is vulnerable to XML Injection in versions 0.0.7 - 2.4.0.

How to fix this

Upgrade the xml_builder library to the patch version.