# CVE-2022-37616: A prototype pollution vulnerability exists in the function copy in dom.js in the xmldom (published as @xmldom/xmldom) package before 0.8.3…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.13%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-10-11T00:00:00.000Z
- Modified: 2026-07-08T06:50:34.432Z
- Also known as: GHSA-9pgh-qqpf-7wqj
- Weaknesses: CWE-1321
- Assigned by: mitre

## Description

A prototype pollution vulnerability exists in the function copy in dom.js in the xmldom (published as @xmldom/xmldom) package before 0.8.3 for Node.js via the p variable. NOTE: the vendor states "we are in the process of marking this report as invalid"; however, some third parties takes the position that "A prototype injection/Prototype pollution is not just when global objects are polluted with recursive merge or deep cloning but also when a target object is polluted."

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @xmldom/xmldom (npm): from 0.8.0 before 0.8.3; from 0.9.0-beta.1 before 0.9.0-beta.2; before 0.7.6
- xmldom (npm): up to 0.6.0
- xmldom_project xmldom: up to 0.6.0; from 0.7.0 before 0.7.6; from 0.8.0 before 0.8.3; 0.9.0
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L1> (patch, third-party-advisory, web)
- <https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L3> (patch, third-party-advisory, web)
- <https://github.com/xmldom/xmldom/issues/436> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00023.html> (mailing-list, third-party-advisory, web)
- <https://dl.acm.org/doi/abs/10.1145/3488932.3497769> (technical-description, third-party-advisory, web)
- <https://dl.acm.org/doi/pdf/10.1145/3488932.3497769> (third-party-advisory, web)
- <http://users.encs.concordia.ca/~mmannan/publications/JS-vulnerability-aisaccs2022.pdf> (technical-description, third-party-advisory, web)
- <https://github.com/xmldom/xmldom/issues/436#issuecomment-1319412826> (issue-tracking, third-party-advisory, web)
- <https://github.com/xmldom/xmldom/issues/436#issuecomment-1327776560> (issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-37616> (advisory)
- <https://github.com/xmldom/xmldom/pull/437> (web)
- <https://github.com/xmldom/xmldom> (package)
- <https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md#076> (web)

## Sources

- CVE List: [CVE-2022-37616](https://www.cve.org/CVERecord?id=CVE-2022-37616), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9pgh-qqpf-7wqj](https://github.com/advisories/GHSA-9pgh-qqpf-7wqj), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-37616](https://nvd.nist.gov/vuln/detail/CVE-2022-37616), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-37616 · Whole record: https://cve.day/CVE-2022-37616.json · Rebuilt by cve.day 2026-11-25T22:58:15.504Z
