<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Mon, 05 Oct 2026 21:08:15 +0000</lastBuildDate>
    <item>
      <title>GHSA-wh4c-j3r5-mjhp — xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion</title>
      <link>https://db.gcve.eu/vuln/ghsa-wh4c-j3r5-mjhp</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: xmldom, npm: @xmldom/xmldom&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;`@xmldom/xmldom` allows attacker-controlled strings containing the CDATA terminator `]]&amp;gt;` to be inserted into a `CDATASection` node. During serialization, `XMLSerializer` emitted the CDATA content verbatim without rejecting or safely splitting the terminator. As a result, data intended to remain text-only became **active XML markup** in the serialized output, enabling XML structure
injection and downstream business-logic manipulation.&lt;/p&gt;
&lt;p&gt;The sequence `]]&amp;gt;` is not allowed inside CDATA content and must be rejected or safely handled during serialization. ([MDN Web Docs](https://developer.mozilla.org/))&lt;/p&gt;
&lt;p&gt;### Attack surface&lt;/p&gt;
&lt;p&gt;`Document.createCDATASection(data)` is the most direct entry point, but it is not the only one. The WHATWG DOM spec intentionally does not validate `]]&amp;gt;` in mutation methods — only `createCDATASection` carries that guard. The following paths therefore also allow `]]&amp;gt;` to enter a CDATASection node and reach the serializer:&lt;/p&gt;
&lt;p&gt;- `CharacterData.appendData()`
- `CharacterData.replaceData()`
- `CharacterData.insertData()`
- Direct assignment to `.data`
- Direct assignment to `.textContent`&lt;/p&gt;
&lt;p&gt;(Note: assigning to `.nodeValue` does **not** update `.data` in this implementation — the serializer reads `.data` directly — so `.nodeValue` is not an exploitable path.)&lt;/p&gt;
&lt;p&gt;### Parse path&lt;/p&gt;
&lt;p&gt;Parsing XML that contains a CDATA section is **not** affected. The SAX parser&amp;#39;s non-greedy `CDSect` regex stops at the first `]]&amp;gt;`, so parsed CDATA data never contains the terminator.…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: xmldom, npm: @xmldom/xmldom&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;`@xmldom/xmldom` allows attacker-controlled strings containing the CDATA terminator `]]&amp;gt;` to be inserted into a `CDATASection` node. During serialization, `XMLSerializer` emitted the CDATA content verbatim without rejecting or safely splitting the terminator. As a result, data intended to remain text-only became **active XML markup** in the serialized output, enabling XML structure
injection and downstream business-logic manipulation.&lt;/p&gt;
&lt;p&gt;The sequence `]]&amp;gt;` is not allowed inside CDATA content and must be rejected or safely handled during serialization. ([MDN Web Docs](https://developer.mozilla.org/))&lt;/p&gt;
&lt;p&gt;### Attack surface&lt;/p&gt;
&lt;p&gt;`Document.createCDATASection(data)` is the most direct entry point, but it is not the only one. The WHATWG DOM spec intentionally does not validate `]]&amp;gt;` in mutation methods — only `createCDATASection` carries that guard. The following paths therefore also allow `]]&amp;gt;` to enter a CDATASection node and reach the serializer:&lt;/p&gt;
&lt;p&gt;- `CharacterData.appendData()`
- `CharacterData.replaceData()`
- `CharacterData.insertData()`
- Direct assignment to `.data`
- Direct assignment to `.textContent`&lt;/p&gt;
&lt;p&gt;(Note: assigning to `.nodeValue` does **not** update `.data` in this implementation — the serializer reads `.data` directly — so `.nodeValue` is not an exploitable path.)&lt;/p&gt;
&lt;p&gt;### Parse path&lt;/p&gt;
&lt;p&gt;Parsing XML that contains a CDATA section is **not** affected. The SAX parser&amp;#39;s non-greedy `CDSect` regex stops at the first `]]&amp;gt;`, so parsed CDATA data never contains the terminator.…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-wh4c-j3r5-mjhp</guid>
    </item>
  </channel>
</rss>
