CVE-2022-37616
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."
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 0.8.3-1 |
| debian | bullseye | fixed | 0.5.0-1+deb11u1 |
| debian | forky | fixed | 0.8.3-1 |
| debian | sid | fixed | 0.8.3-1 |
| debian | trixie | fixed | 0.8.3-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| npm | @xmldom/xmldom | >=0.8.0,<0.8.3 | 0.8.3 |
| npm | xmldom | <=0.6.0 | |
| npm | @xmldom/xmldom | >=0.9.0-beta.1,<0.9.0-beta.2 | 0.9.0-beta.2 |
| npm | @xmldom/xmldom | <0.7.6 | 0.7.6 |
References
- https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj
- https://nvd.nist.gov/vuln/detail/CVE-2022-37616
- https://github.com/xmldom/xmldom/issues/436
- https://github.com/xmldom/xmldom/issues/436#issuecomment-1319412826
- https://github.com/xmldom/xmldom/issues/436#issuecomment-1327776560
- https://github.com/xmldom/xmldom/pull/437
- https://dl.acm.org/doi/abs/10.1145/3488932.3497769
- https://dl.acm.org/doi/pdf/10.1145/3488932.3497769
- https://github.com/xmldom/xmldom
- https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L1
- https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L3
- https://github.com/xmldom/xmldom/blob/master/CHANGELOG.md#076
- https://lists.debian.org/debian-lts-announce/2022/10/msg00023.html
- http://users.encs.concordia.ca/~mmannan/publications/JS-vulnerability-aisaccs2022.pdf
- https://security-tracker.debian.org/tracker/CVE-2022-37616
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.