<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cpe:2.3:a:xmldom:xmldom:*:*:*:*:*:node.js:*:* - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/cpes/cpe2.3axmldomxmldomnode.js/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 08 Sep 2026 21:50:39 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/cpes/cpe2.3axmldomxmldomnode.js/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>XML Injection Vulnerability in @xmldom/xmldom via Processing Instruction Targets</title><link>https://feed.craftedsignal.io/briefs/2026-09-xmldom-injection/</link><pubDate>Tue, 08 Sep 2026 21:50:39 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-xmldom-injection/</guid><description>The @xmldom/xmldom library fails to validate the target parameter in createProcessingInstruction, enabling attackers to break out of XML processing instructions and inject arbitrary content when serializing with the requireWellFormed flag.</description><content:encoded><![CDATA[<p>The @xmldom/xmldom library is susceptible to an XML injection vulnerability (CVE-2026-83616) due to insufficient validation of the target parameter in the <code>Document.createProcessingInstruction()</code> method. When developers use the <code>requireWellFormed: true</code> option in <code>XMLSerializer.serializeToString()</code>, the library fails to properly sanitize the processing instruction (PI) target. Specifically, it does not check for the <code>&gt;</code> character, which prematurely terminates the processing instruction (<code>&lt;?target data?&gt;</code>).</p>
<p>An attacker controlling the input to the target parameter can inject arbitrary XML elements, including <code>&lt;script&gt;</code> tags, into the serialized output. If this output is subsequently served as XHTML or processed by a downstream XML parser, it may lead to Cross-Site Scripting (XSS) or XML External Entity (XXE) injection attacks. The protection is not enabled by default, requiring developers to explicitly opt-in to the <code>requireWellFormed</code> mode, which remains incomplete in its validation logic across various versions of the library.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for the injection of arbitrary XML structure, leading to potential XSS in browser-based applications and XXE vulnerabilities in backend XML parsers. Impact is localized to applications that generate XML dynamically using user-provided data without sufficient secondary validation.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to a non-vulnerable version of @xmldom/xmldom as soon as updates are available.</li>
<li>Audit all <code>serializeToString()</code> call sites to ensure <code>requireWellFormed: true</code> is explicitly enabled for any serialization of untrusted or user-influenced DOM content.</li>
<li>Implement strict input validation on any string used as a processing instruction target, ensuring it conforms strictly to the XML <code>NCName</code> production (no colons, whitespace, or XML-reserved characters like <code>&gt;</code> or <code>?</code>).</li>
<li>Do not rely on <code>requireWellFormed: true</code> as the sole mitigation for untrusted input, as it is an opt-in configuration that may not catch all malicious injection vectors.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>injection</category><category>xss</category><category>xxe</category><category>vulnerability</category></item></channel></rss>