← 漏洞与更新

中危漏洞公告JavaScript / Node.js

fast-xml-parser: Quadratic-time (ReDoS-class) denial of service in XMLValidator attribute scanner, default options

受影响

软件包受影响版本修复版本
npm:fast-xml-parser<= 5.12.05.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,…

在 GitHub Advisory Database 阅读

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。