<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-10T17:12:22.569137+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/ghsa-x6wf-f3px-wcqx</id>
    <title>GHSA-x6wf-f3px-wcqx — xmldom has XML node injection through unvalidated processing instruction serialization</title>
    <updated>2026-10-10T17:12:22.613844+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: @xmldom/xmldom, npm: xmldom</p>
<p>## Summary</p>
<p>The package allows attacker-controlled processing instruction data to be serialized into XML without validating or neutralizing the PI-closing sequence `?&gt;`. As a result, an attacker can terminate the processing instruction early and inject arbitrary XML nodes into the serialized output.</p>
<p>---</p>
<p>## Details</p>
<p>The issue is in the DOM construction and serialization flow for processing instruction nodes.</p>
<p>When `createProcessingInstruction(target, data)` is called, the supplied `data` string is stored directly on the node without validation. Later, when the document is serialized, the serializer writes PI nodes by concatenating `&lt;?`, the target, a space, `node.data`, and `?&gt;` directly.</p>
<p>That behavior is unsafe because processing instructions are a syntax-sensitive context. The closing delimiter `?&gt;` terminates the PI. If attacker-controlled input contains `?&gt;`, the serializer does not preserve it as literal PI content. Instead, it emits output where the remainder of the payload is treated as live XML markup.</p>
<p>The same class of vulnerability was previously addressed for CDATA sections (GHSA-wh4c-j3r5-mjhp / CVE-2026-34601), where `]]&gt;` in CDATA data was handled by splitting. The serializer applies no equivalent protection to processing instruction data.</p>
<p>---</p>
<p>## Affected code</p>
<p>**`lib/dom.js` — `createProcessingInstruction` (lines 2240–2246):**</p>
<p>```js
createProcessingInstruction: function (target, data) {
    var node = new ProcessingInstruction(PDC);
    node.ownerDocumen…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/ghsa-x6wf-f3px-wcqx"/>
  </entry>
</feed>
