CVE-2026-47079
CVE-2026-47079 is a low-severity vulnerability with a CVSS 4.0 base score of 2.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-838.
Key facts
- Severity: Low (CVSS 4.0 base score 2.1)
- EPSS exploit prediction: 0% (4th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-838
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-47079?
- 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.
- How severe is CVE-2026-47079?
- CVE-2026-47079 has a CVSS 4.0 base score of 2.1, rated low severity.
- Is CVE-2026-47079 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (4th percentile), an estimate of the probability of exploitation in the next 30 days.
- How do I fix CVE-2026-47079?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-47079 published?
- CVE-2026-47079 was published on 2026-08-21.
References
- https://cna.erlef.org/cves/CVE-2026-47079.html
- https://github.com/joshnuss/xml_builder/commit/c3390e2046ec297b3bb8c30d5779cdfd6508c275
- https://github.com/joshnuss/xml_builder/security/advisories/GHSA-5hjx-8g53-cmvm
- https://osv.dev/vulnerability/EEF-CVE-2026-47079
Other CWE-838 vulnerabilities
- CVE-2025-4052 — Critical (CVSS 9.8): Inappropriate implementation in DevTools in Google Chrome prior to 136.0.7103.59 allowed a remote attacker who…
- CVE-2019-18981 — Critical (CVSS 9.8): Pimcore before 6.2.2 lacks an Access Denied outcome for a certain scenario of an incorrect recipient ID of a…
- CVE-2018-9862 — High (CVSS 7.8): util.c in runV 1.0.0 for Docker mishandles a numeric username, which allows attackers to obtain root access by…
- CVE-2024-11702 — High (CVSS 7.5): Copying sensitive information from Private Browsing tabs on Android, such as passwords, may have inadvertently stored…
- CVE-2019-6110 — Medium (CVSS 6.8): In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or…
- CVE-2023-6512 — Medium (CVSS 6.5): Inappropriate implementation in Web Browser UI in Google Chrome prior to 120.0.6099.62 allowed a remote attacker to…