{"id":"CVE-2022-37616","aliases":["CVE-2022-37616","GHSA-9pgh-qqpf-7wqj"],"related":[],"kind":"vulnerability","state":"published","title":"A prototype pollution vulnerability exists in the function copy in dom.js in the xmldom (published as @xmldom/xmldom) package before 0.8.3…","summary":"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.\"","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\"","source":"cvelist"},{"lang":"en","text":"## Withdrawn\n\nThis advisory has been withdrawn because the maintainers of `@xmldom/xmldom` and multiple third parties disputed the validity of the issue. Attempts to create or replicate a proof of concept have been unsuccessful.\n\n## Original Description\n\n### Impact\nA prototype pollution vulnerability exists in the function copy in dom.js in the xmldom (published as @xmldom/xmldom) package.\n\n### Patches\nUpdate to `@xmldom/xmldom@~0.7.6`, `@xmldom/xmldom@~0.8.3` (dist-tag `latest`) or `@xmldom/xmldom@>=0.9.0-beta.2` (dist-tag `next`).\n\n### Workarounds\nNone\n\n### References\nhttps://github.com/xmldom/xmldom/pull/437\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at security@xmldom.org\n* Add information to https://github.com/xmldom/xmldom/issues/436","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se presenta una vulnerabilidad de contaminación de prototipos en la función copy en el archivo dom.js en el paquete xmldom (publicado como @xmldom/xmldom) versiones anteriores a 0.8.3 para Node.js por medio de la variable p. NOTA: el proveedor afirma que \"estamos en proceso de marcar este informe como no válido\"","source":"nvd"}],"published":"2022-10-11T00:00:00.000Z","modified":"2026-07-08T06:50:34.432Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.0","status":"affected","fixed":"0.8.3"}],"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.6.0"}],"ecosystem":"npm","package":"xmldom","purl":"pkg:npm/xmldom","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.0-beta.1","status":"affected","fixed":"0.9.0-beta.2"}],"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.6"}],"ecosystem":"npm","package":"@xmldom/xmldom","purl":"pkg:npm/%40xmldom/xmldom","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.6.0"},{"status":"affected","introduced":"0.7.0","fixed":"0.7.6"},{"status":"affected","introduced":"0.8.0","fixed":"0.8.3"},{"status":"affected","version":"0.9.0"}],"vendor":"xmldom_project","product":"xmldom","cpe":"cpe:2.3:a:xmldom_project:xmldom:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L1","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L3","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xmldom/xmldom/issues/436","tags":["issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00023.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://dl.acm.org/doi/abs/10.1145/3488932.3497769","tags":["technical-description","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://dl.acm.org/doi/pdf/10.1145/3488932.3497769","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://users.encs.concordia.ca/~mmannan/publications/JS-vulnerability-aisaccs2022.pdf","tags":["technical-description","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xmldom/xmldom/issues/436#issuecomment-1319412826","tags":["issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xmldom/xmldom/issues/436#issuecomment-1327776560","tags":["issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37616","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xmldom/xmldom/pull/437","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/xmldom/xmldom","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md#076","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-37616","url":"https://www.cve.org/CVERecord?id=CVE-2022-37616","licence":"CVE Terms of Use","modified":"2024-08-03T10:29:21.029Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9pgh-qqpf-7wqj","url":"https://github.com/advisories/GHSA-9pgh-qqpf-7wqj","licence":"CC-BY-4.0","modified":"2026-07-08T06:50:34.432Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-37616","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37616","licence":"Public domain","modified":"2026-06-17T04:55:09.363Z"}],"updatedAt":"2026-11-25T22:58:15.504Z","epss":{"score":0.02134,"percentile":0.82513,"date":"2026-12-01T12:00:22.000Z"}}