Description
The @xmldom/xmldom serializer emits DocumentType.name verbatim into the <!DOCTYPE …> declaration with no well-formedness guard. GHSA-f6ww-3ggp-fr8h (CVE-2026-41674) hardened the serializer’s requireWellFormed path for a DocumentType’s sibling fields — publicId, systemId, and internalSubset — but it did not add any check for name.
Recommendation
Update the @xmldom/xmldom package to the latest compatible version. Followings are version details:
Affected version(s): **>= 0.9.0, <= 0.9.11 >= 0.7.0, <= 0.8.14** Patched version(s): **0.9.12 0.8.15**
References
Could your website be exposed too?
SmartScanner can check your website for xmldom: DocType `name` Injection Bypasses requireWellFormed and gives you actionable findings to investigate.
Start a free scanRelated Issues
- xmldom: DocType `name` Injection Bypasses requireWellFormed - xmldom - CVE-2026-83608
- xmldom: Element name injection via createElement() bypasses requireWellFormed - CVE-2026-83607
- xmldom: Attribute name injection via setAttribute() bypasses requireWellFormed - CVE-2026-83605
- xmldom: Element name injection via createElement() bypasses requireWellFormed - xmldom - CVE-2026-83607


