Inappropriate Encoding for Output Context vulnerability in joshnuss xmlbuilder (XmlBuilder module) allows Content Spoofing, Cross-site…
CVE-2026-47079
Inappropriate Encoding for Output Context vulnerability in joshnuss xmlbuilder (XmlBuilder module) allows Content Spoofing, Cross-site Scripting. This vulnerability is associated with program files lib/xmlbuilder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escapestring/1, XmlBuilder.escapeentity/1. XmlBuilder.generate/1 does not escape literal & characters in text or attribute values when they are followed by an entity-like token (lt;, gt;, amp;, quot;, apos;). As a result, attacker-supplied input such as is emitted verbatim into the serialized XML rather than being escaped to <script>. When a downstream XML parser later reads the document, it decodes the entity sequences into the literal characters , promoting inert-looking text into real markup. This allows an attacker to bypass upstream filters that block raw characters, injecting markup into any downstream consumer that parses the produced XML and renders the text content in a markup-sensitive context (HTML, SVG, RSS/Atom feeds). Both element text and attribute values are affected. This issue affects xmlbuilder: from 0.0.6 before 2.4.1.
Assessment
- CVSS
- 2.1 (v4.0)
- Severity
- Low
- EPSS
- 0.19% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 21 August 2026
- Last updated
- 19 November 2026
- Affected
- joshnuss · xml_builder
- Assigner
- EEF
CVSS vectorCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
At the source
References
- https://github.com/joshnuss/xml_builder/security/advisories/GHSA-5hjx-8g53-cmvm
- https://cna.erlef.org/cves/CVE-2026-47079.html
- https://osv.dev/vulnerability/EEF-CVE-2026-47079
- https://github.com/joshnuss/xml_builder/commit/aae31e6e8ac837bcbb8afb816c0d14324b5cfe2b
- https://github.com/joshnuss/xml_builder/commit/c3390e2046ec297b3bb8c30d5779cdfd6508c275
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-47079