中危 xmldom_project xmldom 输入验证不恰当
CVE编号
CVE-2022-39353利用情况
暂无补丁情况
官方补丁披露时间
2022-11-03漏洞描述
xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) `DOMParser` and `XMLSerializer` module. xmldom parses XML that is not well-formed because it contains multiple top level elements, and adds all root nodes to the `childNodes` collection of the `Document`, without reporting any error or throwing. This breaks the assumption that there is only a single root node in the tree, which led to issuance of CVE-2022-39299 as it is a potential issue for dependents. Update to @xmldom/xmldom@~0.7.7, @xmldom/xmldom@~0.8.4 (dist-tag latest) or @xmldom/xmldom@>=0.9.0-beta.4 (dist-tag next). As a workaround, please one of the following approaches depending on your use case: instead of searching for elements in the whole DOM, only search in the `documentElement`or reject a document with a document that has more then 1 `childNode`.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/jindw/xmldom/issues/150 | |
https://github.com/xmldom/xmldom/security/advisories/GHSA-crh6-fp67-6883 | |
https://lists.debian.org/debian-lts-announce/2023/01/msg00000.html |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | xmldom_project | xmldom | * | Up to (excluding) 0.6.0 | |||||
运行在以下环境 | |||||||||
应用 | xmldom_project | xmldom | * | From (including) 0.7.0 | Up to (excluding) 0.7.7 | ||||
运行在以下环境 | |||||||||
应用 | xmldom_project | xmldom | * | From (including) 0.8.0 | Up to (excluding) 0.8.4 | ||||
运行在以下环境 | |||||||||
应用 | xmldom_project | xmldom | 0.9.0 | - | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | node-xmldom | * | Up to (excluding) 0.1.27+ds-1+deb10u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | node-xmldom | * | Up to (excluding) 0.5.0-1+deb11u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | node-xmldom | * | Up to (excluding) 0.8.6-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | node-xmldom | * | Up to (excluding) 0.8.6-1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | node-xmldom | * | Up to (excluding) 0.1.27+ds-1+deb10u2build0.20.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.04 | node-xmldom | * | Up to (excluding) 0.7.5-1ubuntu0.22.04.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.10 | node-xmldom | * | Up to (excluding) 0.7.5-1ubuntu0.22.10.1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-1288 | Improper Validation of Consistency within Input |
CWE-20 | 输入验证不恰当 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论