CVE-2026-47080
CDATA Section Breakout via Unsanitised ]]> in 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.escape/1. The escape/1 clause for {:cdata, data} in lib/xml_builder.ex concatenates data verbatim between the CDATA opener <![CDATA[ and closer ]]> without rewriting or splitting on the embedded ]]> sequence. Because CDATA sections have no internal escape mechanism, the only safe way to embed arbitrary bytes is to split on ]]> and emit adjacent CDATA sections. An attacker who can supply input containing ]]> closes the CDATA section early; any bytes that follow are parsed as ordinary XML markup by downstream consumers, allowing injection of arbitrary elements, text, or entity references into the output document. This issue affects xml_builder: from 0.0.7 before 2.4.1.
INFO
Published Date :
Aug. 21, 2026, 10:16 a.m.
Last Modified :
Aug. 21, 2026, 10:16 a.m.
Remotely Exploit :
No
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products
The following products are affected by CVE-2026-47080
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | LOW | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update xml_builder to version 2.4.1 or later.
- Review and sanitize CDATA content to prevent ]]> injection.
- Ensure proper XML escaping for all user-supplied data.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-47080.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-47080 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-47080
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-47080 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-47080 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Aug. 21, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/joshnuss/xml_builder', 'vendor': 'joshnuss', 'modules': ["'Elixir.XmlBuilder'"], 'product': 'xml_builder', 'versions': [{'status': 'affected', 'version': '0.0.7', 'lessThan': '2.4.1', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/xml_builder', 'packageName': 'xml_builder', 'programFiles': ['lib/xml_builder.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.XmlBuilder':generate/1"}, {'name': "'Elixir.XmlBuilder':generate/2"}, {'name': "'Elixir.XmlBuilder':escape/1"}]}, {'cpes': ['cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/joshnuss/xml_builder', 'vendor': 'joshnuss', 'modules': ["'Elixir.XmlBuilder'"], 'product': 'xml_builder', 'versions': [{'status': 'affected', 'version': '26766f884ed19adee1563522c7afb5f056a6f3b5', 'lessThan': 'bfb1ada071ccc1e384c30f782197ca5154106706', 'versionType': 'git'}], 'packageURL': 'pkg:github/joshnuss/xml_builder', 'packageName': 'joshnuss/xml_builder', 'programFiles': ['lib/xml_builder.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.XmlBuilder':generate/1"}, {'name': "'Elixir.XmlBuilder':generate/2"}, {'name': "'Elixir.XmlBuilder':escape/1"}]}] Added 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.escape/1. The escape/1 clause for {:cdata, data} in lib/xml_builder.ex concatenates data verbatim between the CDATA opener <![CDATA[ and closer ]]> without rewriting or splitting on the embedded ]]> sequence. Because CDATA sections have no internal escape mechanism, the only safe way to embed arbitrary bytes is to split on ]]> and emit adjacent CDATA sections. An attacker who can supply input containing ]]> closes the CDATA section early; any bytes that follow are parsed as ordinary XML markup by downstream consumers, allowing injection of arbitrary elements, text, or entity references into the output document. This issue affects xml_builder: from 0.0.7 before 2.4.1. Added CVSS V4.0 AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-91 Added Reference https://cna.erlef.org/cves/CVE-2026-47080.html Added Reference https://github.com/joshnuss/xml_builder/commit/bfb1ada071ccc1e384c30f782197ca5154106706 Added Reference https://github.com/joshnuss/xml_builder/security/advisories/GHSA-67r9-hmxw-h595 Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-47080