CVE-2026-47080: CWE-91 XML Injection (aka Blind XPath Injection) in joshnuss xml_builder
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.
AI Analysis
Technical Summary
The vulnerability in joshnuss xml_builder (XmlBuilder module) is due to improper handling of CDATA sections in the escape/1 function. Specifically, the function concatenates data verbatim between <![CDATA[ and ]]> without splitting on embedded ]]> sequences. Since CDATA sections cannot internally escape ]]> sequences, an attacker supplying input containing ]]> can prematurely close the CDATA section. This causes subsequent input to be interpreted as XML markup, enabling injection of arbitrary elements, text, or entity references into the generated XML document. This affects xml_builder versions from 0.0.7 up to but not including 2.4.1.
Potential Impact
An attacker able to supply input containing the ]]> sequence can inject arbitrary XML content into documents generated by xml_builder, potentially leading to content spoofing or manipulation of XML data. The impact is limited by the low CVSS score (2.1) and the requirement for local access (attack vector: local). There are no known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is documented, users should monitor vendor communications for updates. Avoid processing untrusted input containing CDATA sections or the ]]> sequence until a fix is available.
CVE-2026-47080: CWE-91 XML Injection (aka Blind XPath Injection) in joshnuss xml_builder
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.
CVSS v4.0
Score 2.1low
Affected software
cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in joshnuss xml_builder (XmlBuilder module) is due to improper handling of CDATA sections in the escape/1 function. Specifically, the function concatenates data verbatim between <![CDATA[ and ]]> without splitting on embedded ]]> sequences. Since CDATA sections cannot internally escape ]]> sequences, an attacker supplying input containing ]]> can prematurely close the CDATA section. This causes subsequent input to be interpreted as XML markup, enabling injection of arbitrary elements, text, or entity references into the generated XML document. This affects xml_builder versions from 0.0.7 up to but not including 2.4.1.
Potential Impact
An attacker able to supply input containing the ]]> sequence can inject arbitrary XML content into documents generated by xml_builder, potentially leading to content spoofing or manipulation of XML data. The impact is limited by the low CVSS score (2.1) and the requirement for local access (attack vector: local). There are no known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is documented, users should monitor vendor communications for updates. Avoid processing untrusted input containing CDATA sections or the ]]> sequence until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-18T17:28:10.319Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a882376acd9273b49f80ec8
Added to database: 08/21/2026, 10:07:50 UTC
Last enriched: 08/21/2026, 10:22:32 UTC
Last updated: 08/21/2026, 11:03:50 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.