{"id":"DHI-ngax-g3ci-g6hc-heed","aliases":[],"title":"## Submission metadata","originalDescription":"## Submission metadata | Field | Value | |---|---| | Ecosystem | npm | | Package | `nodemailer` | | Repository | https://github.com/nodemailer/nodemailer | | Tested commit | `40d52215aac65b811d7e131bc916f68605efd9d2` | | Current tested version | `10.0.1` | | Confirmed vulnerable versions | `2.7.2`, `3.0.0`, `7.0.11`, `9.1.1`, `10.0.1` | | Proposed affected range | `>= 2.7.2, <= 10.0.1` | | Patched version | 10.0.2 | ## Summary Nodemailer 10.0.1 does not safely process deeply nested arrays supplied through recipient fields such as `to`, `cc`, and `bcc`. The public `MimeNodeAddressInput` type recursively permits arrays, but `MimeNode._parseAddresses()` flattens only the outermost array. A remaining nested array is passed to `addressparser()`, whose `Tokenizer` coerces the input with `.toString()`. Native `Array.prototype.toString()` recursively processes every nested array through `join()` and `toString()` until the V8 call stack is exhausted. A valid 10,021-byte JSON recipient value containing one address wrapped in 5,000 arrays causes: ```text RangeError: Maximum call stack size exceeded ``` The exception occurs through the normal `sendMail()` API before the `maxRecipients` limit i","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-ngax-g3ci-g6hc-heed","type":"advisory"},{"url":"https://github.com/advisories/GHSA-8vvx-rff5-p5rq","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-8vvx-rff5-p5rq","type":"advisory"},{"url":"https://github.com/nodemailer/nodemailer/commit/ebe084940aef88278afc6016b78c6d1c3821bb66","type":"fix"},{"url":"https://github.com/nodemailer/nodemailer/releases/tag/v10.0.2","type":"web"}],"sources":[{"name":"osv","at":"2026-12-02T23:36:11.846Z","url":"https://osv.dev/vulnerability/DHI-ngax-g3ci-g6hc-heed","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:47:37.887Z"}],"firstSeenAt":"2026-11-19T21:47:37.887Z","publishedAt":"2026-11-19T21:02:33.000Z","modifiedAt":"2026-12-02T23:18:26.675Z"}