QID 981558
QID 981558: Nodejs (npm) Security Update for xmldom (GHSA-5fg8-2547-mr8q)
Security update has been released for xmldom to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
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.
Solution
Update to one of the fixed versions of `@xmldom/xmldom` (`^0.5.1 || ^0.6.1 || >=0.7.0`). :exclamation: Users of `xmldom` should switch to `@xmldom/xmldom` to not be affected by this vulnerability.
See issue #271 for the status of publishing `xmldom` to npm or join #270 for Q&A/discussion until it's resolved.Workaround:
Downstream applications can validate the input and reject the maliciously crafted documents.
See issue #271 for the status of publishing `xmldom` to npm or join #270 for Q&A/discussion until it's resolved.Workaround:
Downstream applications can validate the input and reject the maliciously crafted documents.
Vendor References
- GHSA-5fg8-2547-mr8q -
github.com/advisories/GHSA-5fg8-2547-mr8q
CVEs related to QID 981558
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-5fg8-2547-mr8q | xmldom |
|