CVE-2026-47079
published low CVSS 4.0 · 2.1Round-trip Corruption via Improper Entity Escaping in xml_builder
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| joshnuss | — | xml_builder0.0.6 to < 2.4.1 · Other versions: unaffected | Affected | Not stated | EEF |
| joshnuss | — | joshnuss/xml_builderxml_builder · aae31e6e8ac837bcbb8afb816c0d14324b5cfe2b to < c3390e2046ec297b3bb8c30d5779cdfd6508c275 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Inappropriate Encoding for Output Context vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, Cross-site Scripting. This vulnerability is associated with program files lib/xml_builder.ex and program routines XmlBuilder.generate/1, XmlBuilder.generate/2, XmlBuilder.escape_string/1, XmlBuilder.escape_entity/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 <script> is emitted verbatim into the serialized XML rather than being escaped to &lt;script&gt;. When a downstream XML parser later reads the document, it decodes the entity sequences into the literal characters <script>, promoting inert-looking text into real markup. This allows an attacker to bypass upstream filters that block raw < and > 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 xml_builder: from 0.0.6 before 2.4.1.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| joshnuss | xml_builder | 0.0.6 to < 2.4.1 (affected · semver)Default: unaffected | EEF · cna |
| joshnuss | xml_builder | aae31e6e8ac837bcbb8afb816c0d14324b5cfe2b to < c3390e2046ec297b3bb8c30d5779cdfd6508c275 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-838 CWE-838 Inappropriate Encoding for Output Context
References
5- EEF CNA record for CVE-2026-47079 https://cna.erlef.org/cves/CVE-2026-47079.html
- Introducing commit aae31e6 in joshnuss/xml_builder https://github.com/joshnuss/xml_builder/commit/aae31e6e8ac837bcbb8afb816c0d14324b5cfe2b
- Fix commit c3390e2 in joshnuss/xml_builder https://github.com/joshnuss/xml_builder/commit/c3390e2046ec297b3bb8c30d5779cdfd6508c275
- https://github.com/joshnuss/xml_builder/security/advisories/GHSA-5hjx-8g53-cmvm
- OSV record EEF-CVE-2026-47079 https://osv.dev/vulnerability/EEF-CVE-2026-47079
Provider assertions
2EEF · cna
Round-trip Corruption via Improper Entity Escaping in xml_builder
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e235b38cac332366dae9256a98f365ce1853fef1209c28702cfa55393b1ba900
- Ingested
- 19 Nov 2026, 08:49:09 UTC
- Source record
- Official CVE record