# CVE-2022-37616: xmldom Prototype pollution in copy function

Source: https://junglewise.ai/threats/cve-2022-37616-xmldom-prototype-pollution-in-copy-function  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-11. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-37616 · Severity: low · CVSS 3.1 · Published 2022-10-11

xmldom is a JavaScript library for parsing and manipulating XML documents, commonly used in Node.js applications. A prototype pollution vulnerability in the copy function could allow attackers to modify core object properties, potentially affecting application behavior or security. However, this advisory has been withdrawn because maintainers and security researchers were unable to create a working exploit or validate the vulnerability's practical impact.

Technologies: [@xmldom/xmldom (npm)](https://junglewise.ai/threats/technologies/xmldom-xmldom), [xmldom (npm)](https://junglewise.ai/threats/technologies/xmldom). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2022-37616 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-37616 being exploited in the wild.

**How severe is CVE-2022-37616?** Low severity, with a CVSS score of 3.1, published 11 October 2022.

**Which products and versions are affected?** @xmldom/xmldom (npm) SEMVER:introduced=0.8.0,fixed=0.8.3; xmldom (npm) SEMVER:introduced=0,last_affected=0.6.0.

**Is there a fix for CVE-2022-37616?** Yes. @xmldom/xmldom (npm): upgrade to 0.8.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-37616 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2022-37616?** Check whether you run @xmldom/xmldom (npm) or xmldom (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @xmldom/xmldom (npm): upgrade to 0.8.3 or later

  ```sh
  npm install @xmldom/xmldom@0.8.3
  ```


## Technical details

A prototype pollution vulnerability was reported in the copy function of dom.js in the xmldom library (published as @xmldom/xmldom). The vulnerability, classified as CWE-1321, relates to improper control of object prototype attribute modification. However, the advisory was withdrawn on 2022-11-08 after the package maintainers and multiple third parties disputed the validity of the issue. Attempts to create or replicate a proof-of-concept were unsuccessful, and the original report is being marked as invalid. Patches were released for versions 0.7.6, 0.8.3, and 0.9.0-beta.2, but their necessity remains disputed.

## Affected products

- xmldom xmldom <=0.6.0
- xmldom @xmldom/xmldom <0.7.6, >=0.8.0 <0.8.3, 0.9.0-beta.1

## Identifiers

- CVE-2022-37616
- GHSA-9pgh-qqpf-7wqj

## Timeline

- 2022-10-11: disclosed: Advisory published
- 2022-11-08: other: Advisory withdrawn; maintainers disputed validity and POC attempts failed

## References

- [https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj](https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj)

## Related threats

- [xmldom end-tag whitespace-trim ReDoS](https://junglewise.ai/threats/cve-2026-83619-xmldom-end-tag-whitespace-trim-redos)
- [xmldom requireWellFormed DOCTYPE validation bypass via line terminator](https://junglewise.ai/threats/cve-2026-83618-xmldom-requirewellformed-doctype-validation-bypass-via-line)
- [xmldom XMLSerializer requireWellFormed bypass via line terminator](https://junglewise.ai/threats/cve-2026-83617-xmldom-xmlserializer-requirewellformed-bypass-via-line-terminator)
- [xmldom Processing Instruction Target Injection in serialization](https://junglewise.ai/threats/cve-2026-83616-xmldom-processing-instruction-target-injection-in-serialization)
- [xmldom quadratic-memory consumption in namespace parsing](https://junglewise.ai/threats/cve-2026-83615-xmldom-quadratic-memory-consumption-in-namespace-parsing)
