fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:fast-xml-parser | <= 5.12.0 | 5.12.1 |
Reported by Nikhil Agrawal, Mettle Labs; reproduced only against a clean local install of fast-xml-parser@5.11.2 on their own machine. scanAttributeTokens in src/validator.js rescans a leading-whitespace run on every loop iteration when it hits a stray =, giving Theta(n^2) time. A few-hundred-KB input stalls the event loop for tens of seconds. Reachable on the default path via both XMLValidator.validate(xml) and new XMLParser().parse(xml, true), no non-default options. Details src/validator.js,…
2026/12/02 08:35、GitHub Advisory Databaseが「fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: JavaScript / Node.js。CVE: CVE-2026-141469。