# CVE-2026-47080: joshnuss xml_builder XML injection via CDATA escape

Source: https://junglewise.ai/threats/cve-2026-47080-joshnuss-xml-builder-xml-injection-via-cdata-escape  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-21. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-47080 · Severity: info · Published 2026-08-21

The xml_builder library is an Elixir package used to programmatically generate XML documents. A flaw in how it handles CDATA sections allows attackers to inject arbitrary XML markup by embedding the CDATA terminator sequence into input data. This could enable attackers to inject malicious XML elements, attributes, or external entity references into generated documents, potentially leading to data corruption, information disclosure, or further attacks on systems consuming the XML output.

Technologies: [Joshnuss Xml Builder](https://junglewise.ai/threats/technologies/xml-builder). Vendors: [Joshnuss](https://junglewise.ai/threats/vendors/joshnuss).

## Quick answers

**Is CVE-2026-47080 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-47080 being exploited in the wild.

**How severe is CVE-2026-47080?** Informational severity, published 21 August 2026.

**Which products and versions are affected?** Joshnuss Xml Builder 0.0.7 before 2.4.1.

**Is there a fix for CVE-2026-47080?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-47080 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-47080?** Check whether you run Joshnuss Xml Builder at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is an XML injection flaw in the escape/1 function (specifically the {:cdata, data} clause) within lib/xml_builder.ex. The vulnerable code concatenates user-supplied data directly between CDATA markers <![CDATA[ and ]]> without splitting or escaping the CDATA terminator sequence ]]>. An attacker who controls input to XmlBuilder.generate/1 or XmlBuilder.generate/2 can embed ]]> to prematurely close the CDATA section, allowing injection of arbitrary XML markup that will be parsed as valid XML by downstream consumers. The attack requires the ability to supply input to the affected functions; no authentication or special preconditions are documented. The fix is available in version 2.4.1 and later; versions 0.0.7 through 2.4.0 are affected.

## Affected products

- joshnuss xml_builder 0.0.7 before 2.4.1

## Timeline

- 2026-08-21: disclosed

## References

- [https://repo.hex.pm/](https://repo.hex.pm/)
- [https://github.com/](https://github.com/)

## Related threats

- [joshnuss xml_builder XML injection in element and attribute names](https://junglewise.ai/threats/cve-2026-48590-joshnuss-xml-builder-xml-injection-in-element-and-attribute-names)
- [joshnuss xml_builder inappropriate entity encoding in XmlBuilder.generate](https://junglewise.ai/threats/cve-2026-47079-joshnuss-xml-builder-inappropriate-entity-encoding-in-xmlbuilder)
