{"answers":{"affected":"1 open source package ship an affected version, including xml_builder.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47079 exists.","fix":"Upgrade xml_builder to 2.4.1 or later.","what":"CVE-2026-47079 is a low-severity cross-site scripting vulnerability in joshnuss xml_builder, published on 21 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47079 and fix it if it is affected.\n\nWhat it is: CVE-2026-47079 is a low-severity cross-site scripting vulnerability in joshnuss xml_builder, published on 21 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47079 exists.\n\nAffected packages and fixed versions:\n- xml_builder (Hex): affected from 0.0.6; fixed in 2.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47079/ (Markdown: https://insights.sbomify.com/CVE-2026-47079/index.md)","id":"CVE-2026-47079","markdown":"https://insights.sbomify.com/CVE-2026-47079/index.md","name":"CVE-2026-47079","record":{"aliases":["EEF-CVE-2026-47079","GHSA-5hjx-8g53-cmvm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Elixir XML library","requires_auth":"none","summary":"Attackers can inject malicious scripts into XML output by exploiting improper entity escaping, leading to XSS in downstream consumers.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":2.1,"severity":"low","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-838","name":"Inappropriate Encoding for Output Context"}],"description":"Inappropriate Encoding for Output Context vulnerability in joshnuss xml_builder (XmlBuilder module) allows Content Spoofing, Cross-site Scripting.\n\nThis 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.\n\nXmlBuilder.generate/1 does not escape literal \u0026 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 \u0026lt;script\u0026gt; is emitted verbatim into the serialized XML rather than being escaped to \u0026amp;lt;script\u0026amp;gt;. When a downstream XML parser later reads the document, it decodes the entity sequences into the literal characters \u003cscript\u003e, promoting inert-looking text into real markup. This allows an attacker to bypass upstream filters that block raw \u003c and \u003e 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.\n\nThis issue affects xml_builder: from 0.0.6 before 2.4.1.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Round-trip Corruption via Improper Entity Escaping in xml_builder","id":"CVE-2026-47079","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":1,"n_references":4,"next":{"headline":"CDATA Section Breakout via Unsanitised ]]\u003e in xml_builder","id":"CVE-2026-47080"},"packages":[{"ecosystem":"Hex","fixed":["2.4.1"],"introduced":["0.0.6"],"last_affected":[],"package":"xml_builder","purl":"pkg:hex/xml_builder","source":"EEF-CVE-2026-47079"}],"prev":{"headline":"Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass","id":"CVE-2026-47078"},"products":["xml_builder"],"published":"2026-08-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["joshnuss"]},"summary":"Attackers can inject malicious scripts into XML output by exploiting improper entity escaping, leading to XSS in downstream consumers.","url":"https://insights.sbomify.com/CVE-2026-47079/"}