CVE-2026-47080: CWE-91 XML Injection (aka Blind XPath Injection) in joshnuss xml_builder
Description
CVE-2026-47080 is an XML Injection vulnerability in the joshnuss xml_builder library affecting versions from 0.0.7 up to but not including 2.4.1. The flaw arises because the escape/1 function does not properly handle embedded CDATA section terminators (]]>) in user-supplied input, allowing an attacker to prematurely close CDATA sections and inject arbitrary XML content. This can lead to content spoofing and XML injection attacks. The vulnerability has a low CVSS 4.0 score of 2.1, indicating limited impact and complexity.
CVSS v4.0
Score 2.1low
Affected software
joshnuss
xml_builder
joshnuss
xml_builder
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) occurs in the escape/1 clause handling {:cdata, data} in lib/xml_builder.ex. It 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. Subsequent bytes are parsed as normal XML markup, enabling injection of arbitrary elements, text, or entity references into the output XML document. This affects versions >=0.0.7 and <2.4.1.
Potential Impact
An attacker able to supply crafted input containing ]]> can inject arbitrary XML content into documents generated by the xml_builder library. This can lead to content spoofing or manipulation of XML data processed by downstream consumers. The impact is limited by the low CVSS score 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. Until a fix is available, avoid including untrusted input containing CDATA terminators (]]>) in XML generated by xml_builder. Consider sanitizing or rejecting such input to prevent injection. Monitor vendor channels for updates or patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-18T17:28:10.319Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a882376acd9273b49f80ec8
Added to database: 08/21/2026, 10:07:50 UTC
Last enriched: 09/11/2026, 03:17:54 UTC
Last updated: 10/05/2026, 06:48:16 UTC
Views: 70
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.