-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Description
The xmldom package has been found to contain a security vulnerability, as reported by CVE-2022-39353. The vulnerability occurs when parsing XML that is not well-formed due to multiple top-level elements. xmldom adds all root nodes to the childNodes collection of the Document without throwing an error or reporting it, which violates the assumption that there is only a single root node in the tree. Since xmldom-instawork is a fork of xmldom, it is also potentially impacted by the same vulnerability. This raises a potential issue for dependents.
Recommendations
The recommended solution is to update to one of the following versions:
- @xmldom/xmldom@~0.7.7
- @xmldom/xmldom@~0.8.4 (dist-tag latest)
- @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next)
Additional Information
The vulnerability in xmldom has been resolved with the commit c02f786216bed70825f9a351c65e61500f51e931. To address the security vulnerability in xmldom-instawork, the changes made in @xmldom/xmldom could be ported over.
References
https://nvd.nist.gov/vuln/detail/CVE-2022-39353
GHSA-crh6-fp67-6883
jindw/xmldom#150