{"id":"DHI-ypjo-huve-imey-sa2j","aliases":[],"title":"## Summary","originalDescription":"## Summary The SMTP client response parser reassembles multiline server replies by appending each continuation line onto a single response-queue entry and re-testing whether that entry is still a partial (continuation) reply on every line. The partial-response test runs `str.slice(str.lastIndexOf('\\n') + 1)` on the growing entry, which forces a full flatten of the entire accumulated string on each line. A malicious or compromised SMTP server (or an on-path attacker on a plaintext or pre-STARTTLS hop) that streams continuation lines and never sends a completion line drives O(n^2) CPU on the single-threaded Node.js event loop before any authentication, freezing the whole process for an attacker-controlled duration. ## Root Cause The invariant that a server cannot cause superlinear client-side work while a reply is being reassembled is violated. In `src/smtp-connection/index.ts`, `_onData` splits inbound bytes into lines and, while the last queued entry is a continuation reply, concatenates each new line onto that same entry with `this._responseQueue[len - 1] += '\\n' + lines[i]`. On every iteration it calls `isPartialResponse(lastline)`, which evaluates `/^\\d+-/.test(str.slice(str.las","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-ypjo-huve-imey-sa2j","type":"advisory"},{"url":"https://github.com/advisories/GHSA-4g23-2xm8-66gc","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-4g23-2xm8-66gc","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/commit/f2d82fa84d47015a7bbb4253da61eeb778c658b1","type":"fix"},{"url":"https://github.com/nodemailer/nodemailer/releases/tag/v10.0.10","type":"web"}],"sources":[{"name":"osv","at":"2026-12-03T17:35:21.249Z","url":"https://osv.dev/vulnerability/DHI-ypjo-huve-imey-sa2j","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:47:32.425Z"}],"firstSeenAt":"2026-11-19T21:47:32.425Z","publishedAt":"2026-11-19T21:02:33.000Z","modifiedAt":"2026-12-03T17:16:43.800Z"}