{"affected":[{"package":{"ecosystem":"Hex","name":"xml_builder","purl":"pkg:hex/xml_builder"},"ranges":[{"events":[{"introduced":"0.0.7"},{"fixed":"2.4.1"}],"type":"SEMVER"}],"versions":["0.0.7","0.0.8","0.0.9","0.1.0","0.1.1","0.1.2","2.0.0","2.1.0","2.1.1","2.1.2","2.1.4","2.2.0","2.3.0","2.4.0"]},{"ranges":[{"events":[{"introduced":"26766f884ed19adee1563522c7afb5f056a6f3b5"},{"fixed":"bfb1ada071ccc1e384c30f782197ca5154106706"}],"repo":"https://github.com/joshnuss/xml_builder","type":"GIT"}]}],"aliases":["GHSA-67r9-hmxw-h595","CVE-2026-47080"],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Joshua Nussbaum","type":"REMEDIATION_DEVELOPER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"}],"database_specific":{"capec_ids":["CAPEC-250"],"cpe_ids":["cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-91"]},"details":"## 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.","id":"EEF-CVE-2026-47080","modified":"2026-08-21T09:49:35.314264Z","published":"2026-08-21T09:49:34.772Z","references":[{"type":"ADVISORY","url":"https://github.com/joshnuss/xml_builder/security/advisories/GHSA-67r9-hmxw-h595"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-47080.html"},{"type":"FIX","url":"https://github.com/joshnuss/xml_builder/commit/bfb1ada071ccc1e384c30f782197ca5154106706"},{"type":"PACKAGE","url":"https://hex.pm/packages/xml_builder"}],"related":[],"schema_version":"1.7.3","severity":[{"score":"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","type":"CVSS_V4"}],"summary":"CDATA Section Breakout via Unsanitised ]]> in xml_builder","upstream":[]}