CVE-2026-47079: CWE-838 Inappropriate Encoding for Output Context in joshnuss xml_builder
Description
CVE-2026-47079 is a vulnerability in the joshnuss xml_builder library where certain characters are not properly escaped in XML output. This allows attacker-supplied input containing entity-like tokens to be emitted verbatim, potentially leading to content spoofing or cross-site scripting when downstream XML parsers decode the entities. The issue affects versions from 0.0.6 up to but not including 2.4.1.
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 arises because XmlBuilder.generate/1 does not escape literal '&' characters in text or attribute values when followed by entity-like tokens such as lt;, gt;, amp;, quot;, or apos;. Consequently, input like '<script>' is output without proper escaping, allowing downstream XML parsers to interpret it as markup rather than inert text. This can enable attackers to inject markup into any downstream consumer that parses the XML and renders the text in a markup-sensitive context, including HTML, SVG, or RSS/Atom feeds. Both element text and attribute values are affected. The affected versions are >=0.0.6 and <2.4.1.
Potential Impact
The vulnerability can lead to content spoofing and cross-site scripting (XSS) attacks when the malformed XML is parsed and rendered by downstream consumers. This could allow attackers to inject malicious markup despite upstream filters blocking raw '<' and '>' characters. However, the CVSS score is low (2.1), indicating limited impact or exploitability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should monitor vendor communications for updates and consider avoiding affected versions until a fix is released.
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: 6a882376acd9273b49f80ec6
Added to database: 08/21/2026, 10:07:50 UTC
Last enriched: 09/11/2026, 03:18:01 UTC
Last updated: 10/05/2026, 18:48:19 UTC
Views: 73
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.