2.1low
CDATA Section Breakout via Unsanitised ]]> in xml_builder
- Severity
- 2.1low CVSS:4.0 by EEF
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- EEF-CVE-2026-47080GHSA-67r9-hmxw-h595
Description
XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1. The escape/1 clause for {:cdata, data} in lib/xml_builder.ex concatenates data verbatim between the CDATA opener <![CDATA[ and closer ]]> without rewriting or splitting on the embedded ]]> sequence. Because CDATA sections have no internal escape mechanism, the only safe way to embed arbitrary bytes is to split on ]]> and emit adjacent CDATA sections. An attacker who can supply input containing ]]> closes the CDATA section early; any bytes that follow are parsed as ordinary XML markup by downstream consumers, allowing injection of arbitrary elements, text, or entity references into the output document. This issue affects xml_builder: from 0.0.7 before 2.4.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| xml_builder | from 0.0.7 before 2.4.1 | CVE List |
| joshnuss/xml_builder | from 26766f884ed19adee1563522c7afb5f056a6f3b5 before bfb1ada071ccc1e384c30f782197ca5154106706 | CVE List |
| xml_builder (Hex) | from 0.0.7 before 2.4.1 | Erlang Ecosystem Foundation |
| https://github.com/joshnuss/xml_builder | from 26766f884ed19adee1563522c7afb5f056a6f3b5 before bfb1ada071ccc1e384c30f782197ca5154106706 | Erlang Ecosystem Foundation |
All scores
| EEF | 2.1low CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection. This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1. The escape/1 clause for {:cdata, data} in lib/xml_builder.ex concatenates data verbatim between the CDATA opener <![CDATA[ and closer ]]> without rewriting or splitting on the embedded ]]> sequence. Because CDATA sections have no internal escape mechanism, the only safe way to embed arbitrary bytes is to split on ]]> and emit adjacent CDATA sections. An attacker who can supply input containing ]]> closes the CDATA section early; any bytes that follow are parsed as ordinary XML markup by downstream consumers, allowing injection of arbitrary elements, text, or entity references into the output document. This issue affects xml_builder: from 0.0.7 before 2.4.1.
Erlang Ecosystem Foundation
Summary
XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection.
This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1.
The escape/1 clause for {:cdata, data} in lib/xml_builder.ex concatenates data verbatim between the CDATA opener <![CDATA[ and closer ]]> without rewriting or splitting on the embedded ]]> sequence. Because CDATA sections have no internal escape mechanism, the only safe way to embed arbitrary bytes is to split on ]]> and emit adjacent CDATA sections. An attacker who can supply input containing ]]> closes the CDATA section early; any bytes that follow are parsed as ordinary XML markup by downstream consumers, allowing injection of arbitrary elements, text, or entity references into the output document.
This issue affects xml_builder: from 0.0.7 before 2.4.1.
NVD (es)
Una vulnerabilidad de inyección XML en joshnuss xml_builder (módulo XmlBuilder) permite la suplantación de contenido, inyección XML. Esta vulnerabilidad está asociada con los archivos de programa lib/xml_builder.ex y las rutinas de programa XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1. La cláusula escape/1 para {:cdata, data} en lib/xml_builder.ex concatena los datos textualmente entre el abridor CDATA <![CDATA[ y el cerrador ]]> sin reescribir ni dividir en la secuencia incrustada ]]>. Debido a que las secciones CDATA no tienen un mecanismo de escape interno, la única forma segura de incrustar bytes arbitrarios es dividir en ]]> y emitir secciones CDATA adyacentes. Un atacante que puede proporcionar una entrada que contenga ]]> cierra la sección CDATA prematuramente; cualquier byte que siga se analiza como marcado XML ordinario por los consumidores posteriores, permitiendo la inyección de elementos arbitrarios, texto o referencias de entidad en el documento de salida. Este problema afecta a xml_builder: desde 0.0.7 anterior a 2.4.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47080 changed 2026-11-19 | CVE Terms of Use |
| Erlang Ecosystem Foundation | EEF-CVE-2026-47080 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-47080 changed 2026-11-19 | Public domain |