Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection regexes allows pre-auth remote denial of service
影響: npm:nodemailer >= 3.0.0, <= 10.0.12 → 10.0.13
Nodemailer's SMTP client applies four regular expressions to a peer's EHLO response to detect the supported SASL mechanisms. Each pattern uses an alternation with two overlapping whitespace-matching sub-patterns, which produces quadratic (O(n^2)) backtracking whenever the mechanism name is absent from the line. A malicious or MITM SMTP server that answers EHLO with 250-AUTH followed by a long whitespace-only run and a non-matching token blocks the Node.js event loop for tens of seconds to hours…
| 来源 | GitHub Advisory Database |
|---|---|
| 获取时间 | 2026/10/28 06:03 |
| 数据 | Markdown JSON |
2026/10/28 00:04,GitHub Advisory Database 发布了“Nodemailer: Quadratic backtracking in SMTP AUTH mechanism detection regexes allows pre-auth remote denial of service”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:JavaScript / Node.js。