<?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>Fri, 16 Oct 2026 05:27:48 +0000</lastBuildDate>
    <item>
      <title>GHSA-f6ww-3ggp-fr8h — xmldom has XML injection through unvalidated DocumentType serialization</title>
      <link>https://db.gcve.eu/vuln/ghsa-f6ww-3ggp-fr8h</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @xmldom/xmldom, npm: xmldom&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;The package serializes `DocumentType` node fields (`internalSubset`, `publicId`, `systemId`) verbatim
without any escaping or validation. When these fields are set programmatically to attacker-controlled
strings, `XMLSerializer.serializeToString` can produce output where the DOCTYPE declaration is
terminated early and arbitrary markup appears outside it.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Details&lt;/p&gt;
&lt;p&gt;`DOMImplementation.createDocumentType(qualifiedName, publicId, systemId, internalSubset)` validates
only `qualifiedName` against the XML QName production. The remaining three arguments are stored
as-is with no validation.&lt;/p&gt;
&lt;p&gt;The XMLSerializer emits `DocumentType` nodes as:&lt;/p&gt;
&lt;p&gt;```
&amp;lt;!DOCTYPE name[ PUBLIC pubid][ SYSTEM sysid][ [internalSubset]]&amp;gt;
```&lt;/p&gt;
&lt;p&gt;All fields are pushed into the output buffer verbatim — no escaping, no quoting added.&lt;/p&gt;
&lt;p&gt;**`internalSubset` injection:** The serializer wraps `internalSubset` with ` [` and `]`. A value
containing `]&amp;gt;` closes the internal subset and the DOCTYPE declaration at the injection point.
Any content after `]&amp;gt;` in `internalSubset` appears outside the DOCTYPE in the serialized output as
raw XML markup. Reported by @TharVid (GHSA-f6ww-3ggp-fr8h). Affected: `@xmldom/xmldom` ≥ 0.9.0
via `createDocumentType` API; 0.8.x only via direct property write.&lt;/p&gt;
&lt;p&gt;**`publicId` injection:** The serializer emits `publicId` verbatim after `PUBLIC` with no
quoting added. A value containing an injected system identifier (e.g.,
`&amp;#34;pubid&amp;#34; SYSTEM &amp;#34;evil&amp;#34;`) breaks the intended quoting context,…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: @xmldom/xmldom, npm: xmldom&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;The package serializes `DocumentType` node fields (`internalSubset`, `publicId`, `systemId`) verbatim
without any escaping or validation. When these fields are set programmatically to attacker-controlled
strings, `XMLSerializer.serializeToString` can produce output where the DOCTYPE declaration is
terminated early and arbitrary markup appears outside it.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Details&lt;/p&gt;
&lt;p&gt;`DOMImplementation.createDocumentType(qualifiedName, publicId, systemId, internalSubset)` validates
only `qualifiedName` against the XML QName production. The remaining three arguments are stored
as-is with no validation.&lt;/p&gt;
&lt;p&gt;The XMLSerializer emits `DocumentType` nodes as:&lt;/p&gt;
&lt;p&gt;```
&amp;lt;!DOCTYPE name[ PUBLIC pubid][ SYSTEM sysid][ [internalSubset]]&amp;gt;
```&lt;/p&gt;
&lt;p&gt;All fields are pushed into the output buffer verbatim — no escaping, no quoting added.&lt;/p&gt;
&lt;p&gt;**`internalSubset` injection:** The serializer wraps `internalSubset` with ` [` and `]`. A value
containing `]&amp;gt;` closes the internal subset and the DOCTYPE declaration at the injection point.
Any content after `]&amp;gt;` in `internalSubset` appears outside the DOCTYPE in the serialized output as
raw XML markup. Reported by @TharVid (GHSA-f6ww-3ggp-fr8h). Affected: `@xmldom/xmldom` ≥ 0.9.0
via `createDocumentType` API; 0.8.x only via direct property write.&lt;/p&gt;
&lt;p&gt;**`publicId` injection:** The serializer emits `publicId` verbatim after `PUBLIC` with no
quoting added. A value containing an injected system identifier (e.g.,
`&amp;#34;pubid&amp;#34; SYSTEM &amp;#34;evil&amp;#34;`) breaks the intended quoting context,…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-f6ww-3ggp-fr8h</guid>
    </item>
  </channel>
</rss>
