CVE-2022-37616
A prototype pollution vulnerability exists in the function copy in dom ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux. Rated lower by Ubuntu (medium).
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."
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | python-tensorboard | 0:2.16.2-1.azl3 |
| debian 10 | node-xmldom | 0.1.27+ds-1+deb10u1 |
| debian 11 | node-xmldom | 0.5.0-1+deb11u1 |
| debian 12 | node-xmldom | 0.8.3-1 |
| debian 13 | node-xmldom | 0.8.3-1 |
| debian 14 | node-xmldom | 0.8.3-1 |
| echo | node-xmldom | 0.8.3-1 |
| rapidfort ubuntu 20.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| rapidfort ubuntu 22.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| rapidfort ubuntu 24.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| ubuntu 20.04 | node-xmldom | 0.1.27+ds-1+deb10u2build0.20.04.1 |
| ubuntu 20.04-ESM | node-xmldom | 0.1.27+ds-1+deb10u2build0.20.04.1 |
Show all 14 entries from 14 sources
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | python-tensorboard | 0:2.16.2-1.azl3 |
| debian 10 | node-xmldom | 0.1.27+ds-1+deb10u1 |
| debian 11 | node-xmldom | 0.5.0-1+deb11u1 |
| debian 12 | node-xmldom | 0.8.3-1 |
| debian 13 | node-xmldom | 0.8.3-1 |
| debian 14 | node-xmldom | 0.8.3-1 |
| echo | node-xmldom | 0.8.3-1 |
| rapidfort ubuntu 20.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| rapidfort ubuntu 22.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| rapidfort ubuntu 24.04 | node-xmldom | 0:0.7.5-1ubuntu0.22.04.1 |
| ubuntu 20.04 | node-xmldom | 0.1.27+ds-1+deb10u2build0.20.04.1 |
| ubuntu 20.04-ESM | node-xmldom | 0.1.27+ds-1+deb10u2build0.20.04.1 |
| ubuntu 22.04 | node-xmldom | 0.7.5-1ubuntu0.22.04.1 |
| ubuntu 22.10 | node-xmldom | 0.7.5-1ubuntu0.22.10.1 |
References
- http://users.encs.concordia.ca/~mmannan/publications/JS-vulnerability-aisaccs2022.pdf
- 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/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L1
- https://github.com/xmldom/xmldom/blob/bc36efddf9948aba15618f85dc1addfc2ac9d7b2/lib/dom.js#L3
- 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
All 14 references
- https://github.com/xmldom/xmldom/pull/437
- https://github.com/xmldom/xmldom/security/advisories/GHSA-9pgh-qqpf-7wqj
- https://lists.debian.org/debian-lts-announce/2022/10/msg00023.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-37616
- https://ubuntu.com/security/notices/USN-6102-1
- https://www.cve.org/CVERecord?id=CVE-2022-37616