{"id":"CVE-2026-47080","aliases":["CVE-2026-47080","EEF-CVE-2026-47080","GHSA-67r9-hmxw-h595"],"related":[],"kind":"vulnerability","state":"published","title":"CDATA Section Breakout via Unsanitised ]]> in xml_builder","summary":"XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection.\n\nThis vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1.\n\nThe 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.\n\nThis issue affects xml_builder: from 0.0.7 before 2.4.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XML Injection vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, XML Injection.\n\nThis vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape/1.\n\nThe 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.\n\nThis issue affects xml_builder: from 0.0.7 before 2.4.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nXML Injection vulnerability in joshnuss xml_builder (`XmlBuilder` module) allows Content Spoofing, XML Injection.\n\nThis vulnerability is associated with program files `lib/xml_builder.ex` and program routines `XmlBuilder.generate/1`, `XmlBuilder.generate/2`, `XmlBuilder.escape/1`.\n\nThe `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.\n\nThis issue affects xml_builder: from 0.0.7 before 2.4.1.","format":"markdown","source":"eef"},{"lang":"es","text":"Una vulnerabilidad de inyección XML en joshnuss xml_builder (módulo XmlBuilder) permite la suplantación de contenido, inyección XML.\n\nEsta 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.\n\nLa 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.\n\nEste problema afecta a xml_builder: desde 0.0.7 anterior a 2.4.1.","source":"nvd"}],"published":"2026-08-21T09:49:34.772Z","modified":"2026-11-25T06:30:08.308Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-91"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.7","fixed":"2.4.1","status":"affected"}],"vendor":"joshnuss","product":"xml_builder","package":"xml_builder","cpe":"cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*","repo":"https://github.com/joshnuss/xml_builder","source":"cvelist"},{"ranges":[{"type":"git","introduced":"26766f884ed19adee1563522c7afb5f056a6f3b5","fixed":"bfb1ada071ccc1e384c30f782197ca5154106706","status":"affected"}],"vendor":"joshnuss","product":"xml_builder","package":"joshnuss/xml_builder","cpe":"cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*","repo":"https://github.com/joshnuss/xml_builder","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.7","status":"affected","fixed":"2.4.1"}],"ecosystem":"Hex","package":"xml_builder","purl":"pkg:hex/xml_builder","source":"eef"},{"ranges":[{"type":"git","introduced":"26766f884ed19adee1563522c7afb5f056a6f3b5","status":"affected","fixed":"bfb1ada071ccc1e384c30f782197ca5154106706"}],"repo":"https://github.com/joshnuss/xml_builder","source":"eef"}],"references":[{"url":"https://github.com/joshnuss/xml_builder/security/advisories/GHSA-67r9-hmxw-h595","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-47080.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-47080","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/joshnuss/xml_builder/commit/26766f884ed19adee1563522c7afb5f056a6f3b5","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/joshnuss/xml_builder/commit/bfb1ada071ccc1e384c30f782197ca5154106706","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://vincent.vulcoord.net/score/?state=Not+Scored&year=2026&year=2025&assigned_to=88bc49d9-8ddd-4227-affc-a613e67abc4d&ordering=-published&cve=CVE-2026-47080","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://hex.pm/packages/xml_builder","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Joshua Nussbaum"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-21T12:30:05.428Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47080","url":"https://www.cve.org/CVERecord?id=CVE-2026-47080","licence":"CVE Terms of Use","modified":"2026-11-19T08:43:24.096Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-47080","url":"https://osv.dev/vulnerability/EEF-CVE-2026-47080","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:08.308Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47080","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47080","licence":"Public domain","modified":"2026-11-19T09:17:45.127Z"}],"updatedAt":"2026-11-25T22:59:34.768Z","epss":{"score":0.00168,"percentile":0.06404,"date":"2026-12-01T12:00:22.000Z"}}