CVE-2026-48590: 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.element/1, XmlBuilder.element/2, XmlBuilder.element/3. Element names, attribute names, and doctype identifiers are interpolated verbatim into the serialized XML output without validation or escaping of structural characters (<, >, ", ', &). An attacker who can influence a name argument (for example, an element name derived from a JSON object key or an HTTP form field name) can inject arbitrary XML markup including extra elements, comments, and event-handler attributes into the output document. This issue affects xml_builder: from 0.0.1 before 2.4.1.
AI Analysis
Technical Summary
The xml_builder library by joshnuss contains an XML Injection vulnerability (CWE-91) where element names, attribute names, and doctype identifiers are interpolated directly into XML output without escaping or validation of special XML characters. This allows an attacker who can control these inputs to inject arbitrary XML markup, including extra elements, comments, or event-handler attributes, potentially leading to content spoofing or other injection-based attacks. The vulnerability affects versions from 0.0.1 up to but not including 2.4.1. There is no vendor advisory or patch currently available to address this issue.
Potential Impact
An attacker able to influence XML element or attribute names can inject arbitrary XML content into the serialized output. This can result in content spoofing or manipulation of XML documents generated by the library. The CVSS score of 2.1 (low) reflects limited impact and attack complexity, requiring local access or low attack vector. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted input for XML element names, attribute names, or doctype identifiers in xml_builder. Apply input validation or sanitization to prevent injection of special XML characters.
CVE-2026-48590: 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.element/1, XmlBuilder.element/2, XmlBuilder.element/3. Element names, attribute names, and doctype identifiers are interpolated verbatim into the serialized XML output without validation or escaping of structural characters (<, >, ", ', &). An attacker who can influence a name argument (for example, an element name derived from a JSON object key or an HTTP form field name) can inject arbitrary XML markup including extra elements, comments, and event-handler attributes into the output document. This issue affects xml_builder: from 0.0.1 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 xml_builder library by joshnuss contains an XML Injection vulnerability (CWE-91) where element names, attribute names, and doctype identifiers are interpolated directly into XML output without escaping or validation of special XML characters. This allows an attacker who can control these inputs to inject arbitrary XML markup, including extra elements, comments, or event-handler attributes, potentially leading to content spoofing or other injection-based attacks. The vulnerability affects versions from 0.0.1 up to but not including 2.4.1. There is no vendor advisory or patch currently available to address this issue.
Potential Impact
An attacker able to influence XML element or attribute names can inject arbitrary XML content into the serialized output. This can result in content spoofing or manipulation of XML documents generated by the library. The CVSS score of 2.1 (low) reflects limited impact and attack complexity, requiring local access or low attack vector. No known active exploitation has been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using untrusted input for XML element names, attribute names, or doctype identifiers in xml_builder. Apply input validation or sanitization to prevent injection of special XML characters.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-22T09:36:56.833Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a882376acd9273b49f80eca
Added to database: 08/21/2026, 10:07:50 UTC
Last enriched: 08/21/2026, 10:22:26 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.