Skip to main content
EPSS 0.2%top 88%

CVE-2026-47080: CWE-91 XML Injection (aka Blind XPath Injection) in joshnuss xml_builder

0
Low
VulnerabilityCVE-2026-47080cvecve-2026-47080cwe-91
Published: 08/21/2026 (08/21/2026, 09:49:34 UTC)
Source: CVE Database V5
Vendor/Project: joshnuss
Product: xml_builder

Description

CVE-2026-47080 is an XML Injection vulnerability in the joshnuss xml_builder library affecting versions from 0.0.7 up to but not including 2.4.1. The flaw arises because the escape/1 function does not properly handle embedded CDATA section terminators (]]>) in user-supplied input, allowing an attacker to prematurely close CDATA sections and inject arbitrary XML content. This can lead to content spoofing and XML injection attacks. The vulnerability has a low CVSS 4.0 score of 2.1, indicating limited impact and complexity.

CVSS v4.0

Score 2.1low

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
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

Affected software

joshnuss

xml_builder

Affected versions
>=0.0.7 <2.4.1

joshnuss

xml_builder

xml_builder
pkg:hex/xml_builder
Affected versions
>=0.0.7 <2.4.1
GitHub Actionsmore threats →cve
joshnuss/xml_builder
pkg:github/joshnuss/xml_builder
CPE configurations
cpe:2.3:a:joshnuss:xml_builder:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 03:17:54 UTC

Technical Analysis

The vulnerability in joshnuss xml_builder (XmlBuilder module) occurs in the escape/1 clause handling {:cdata, data} in lib/xml_builder.ex. It concatenates data verbatim between <![CDATA[ and ]]> without splitting on embedded ]]> sequences. Since CDATA sections cannot internally escape ]]> sequences, an attacker supplying input containing ]]> can prematurely close the CDATA section. Subsequent bytes are parsed as normal XML markup, enabling injection of arbitrary elements, text, or entity references into the output XML document. This affects versions >=0.0.7 and <2.4.1.

Potential Impact

An attacker able to supply crafted input containing ]]> can inject arbitrary XML content into documents generated by the xml_builder library. This can lead to content spoofing or manipulation of XML data processed by downstream consumers. The impact is limited by the low CVSS score and the requirement for local access (attack vector: local). There are no known exploits in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid including untrusted input containing CDATA terminators (]]>) in XML generated by xml_builder. Consider sanitizing or rejecting such input to prevent injection. Monitor vendor channels for updates or patches addressing this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-05-18T17:28:10.319Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a882376acd9273b49f80ec8

Added to database: 08/21/2026, 10:07:50 UTC

Last enriched: 09/11/2026, 03:17:54 UTC

Last updated: 10/05/2026, 06:48:16 UTC

Views: 70

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses