{"id":"DHI-rmqp-rj3n-gsp5-ul2b","aliases":[],"title":"## Summary","originalDescription":"## Summary 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 during a pre-authentication handshake. No authentication to the target SMTP server is required, and any application that connects to an attacker-influenced host is affected. ## Root Cause Each of the four AUTH mechanism regexes in `SMTPConnection._actionEHLO` contains the sub-pattern `(?:(\\s+|=)[^\\n]*\\s+|\\s+|=)` before the mechanism literal. `[^\\n]*` and the trailing `\\s+` both match whitespace and can consume the same characters, so when the mechanism literal is absent, the regex engine must try every partition of the whitespace run between `[^\\n]*` and `\\s+` before failing. The four regexes run unconditionally on every EHLO response, with no length cap, no shape validation, an","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-rmqp-rj3n-gsp5-ul2b","type":"advisory"},{"url":"https://github.com/advisories/GHSA-4ffr-jq9g-5ffx","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-4ffr-jq9g-5ffx","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/commit/b5a896fcb02df1628329d7cd665ca08490b14b56","type":"fix"},{"url":"https://github.com/nodemailer/nodemailer/releases/tag/v10.0.13","type":"web"}],"sources":[{"name":"osv","at":"2026-12-03T17:35:20.549Z","url":"https://osv.dev/vulnerability/DHI-rmqp-rj3n-gsp5-ul2b","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:47:33.890Z"}],"firstSeenAt":"2026-11-19T21:47:33.890Z","publishedAt":"2026-11-19T21:02:33.000Z","modifiedAt":"2026-12-03T17:16:49.559Z"}