xmldom versions 0.6.0 and older do not correctly escape special characters when serializing elements removed from their ancestor. This may lead to unexpected syntactic changes during XML processing in some downstream applications.
Update to 0.7.0
(see issue #271 for the status of publishing the version to npm or join for Q&A/discussion #270 until it’s resolved)
Downstream applications can validate the input and reject the maliciously crafted documents.
If you have any questions or comments about this advisory:
xmldom/xmldom
npm owner ls xmldom
Upgrade to version 0.7.0 or later