CVE-2023-26920
MEDIUM6.5EPSS 0.20%fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name
發布日:2023/6/13修改日:2026/3/16
描述
### Impact As a part of this vulnerability, user was able to se code using `__proto__` as a tag or attribute name. ```js const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser"); let XMLdata = "<__proto__><polluted>hacked</polluted></__proto__>" const parser = new XMLParser(); let jObj = parser.parse(XMLdata); console.log(jObj.polluted) // should return hacked ``` ### Patches The problem has been patched in v4.1.2 ### Workarounds User can check for "__proto__" in the XML string before parsing it to the parser. ### References https://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7
受影響套件(2)
- Debian/node-webfontfrom 0
- npm/fast-xml-parserfrom 0, < 4.1.2
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
參考連結(7)
- ADVISORYhttps://github.com/advisories/GHSA-793h-6f7r-6qvm
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-26920
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-26920
- PATCHhttps://github.com/NaturalIntelligence/fast-xml-parser
- WEBhttps://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7
- WEBhttps://github.com/NaturalIntelligence/fast-xml-parser/commit/2b032a4f799c63d83991e4f992f1c68e4dd05804
- WEBhttps://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-x3cc-x39p-42qx